summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--COPYING674
-rw-r--r--ChangeLog8
-rw-r--r--INSTALL3
-rw-r--r--README.md10
-rw-r--r--img/add.pngbin0 -> 287 bytes
-rw-r--r--img/add.svg70
-rw-r--r--img/addfolder.pngbin0 -> 1032 bytes
-rw-r--r--img/addfolder.svg83
-rw-r--r--img/channel.pngbin0 -> 310 bytes
-rw-r--r--img/channel.svg100
-rw-r--r--img/clear.pngbin0 -> 398 bytes
-rw-r--r--img/clear.svg71
-rwxr-xr-ximg/convpng7
-rw-r--r--img/down.pngbin0 -> 350 bytes
-rw-r--r--img/down.svg72
-rw-r--r--img/effects.pngbin0 -> 837 bytes
-rw-r--r--img/effects.svg76
-rw-r--r--img/list.pngbin0 -> 283 bytes
-rw-r--r--img/list.svg82
-rw-r--r--img/load.pngbin0 -> 968 bytes
-rw-r--r--img/load.svg73
-rw-r--r--img/next.pngbin0 -> 511 bytes
-rw-r--r--img/next.svg75
-rw-r--r--img/pause.pngbin0 -> 278 bytes
-rw-r--r--img/pause.svg79
-rw-r--r--img/play.pngbin0 -> 641 bytes
-rw-r--r--img/play.svg67
-rw-r--r--img/prev.pngbin0 -> 511 bytes
-rw-r--r--img/prev.svg74
-rw-r--r--img/qmidiplyr.pngbin0 -> 2541 bytes
-rw-r--r--img/qmidiplyr.svg117
-rw-r--r--img/remove.pngbin0 -> 208 bytes
-rw-r--r--img/remove.svg72
-rw-r--r--img/repeat-all.pngbin0 -> 1212 bytes
-rw-r--r--img/repeat-all.svg89
-rw-r--r--img/repeat-base.pngbin0 -> 915 bytes
-rw-r--r--img/repeat-base.svg78
-rw-r--r--img/repeat-non.pngbin0 -> 1042 bytes
-rw-r--r--img/repeat-non.svg84
-rw-r--r--img/repeat-one.pngbin0 -> 994 bytes
-rw-r--r--img/repeat-one.svg91
-rw-r--r--img/save.pngbin0 -> 1034 bytes
-rw-r--r--img/save.svg523
-rw-r--r--img/save8.svg91
-rw-r--r--img/settings.pngbin0 -> 985 bytes
-rw-r--r--img/settings.svg96
-rw-r--r--img/shuffle-off.pngbin0 -> 904 bytes
-rw-r--r--img/shuffle-off.svg94
-rw-r--r--img/shuffle.pngbin0 -> 833 bytes
-rw-r--r--img/shuffle.svg89
-rw-r--r--img/stop.pngbin0 -> 279 bytes
-rw-r--r--img/stop.svg70
-rw-r--r--img/up.pngbin0 -> 349 bytes
-rw-r--r--img/up.svg72
-rw-r--r--img/visualization.pngbin0 -> 330 bytes
-rw-r--r--img/visualization.svg103
-rw-r--r--main.cpp16
-rw-r--r--qmidiplayer.pro30
-rw-r--r--qmpmainwindow.cpp218
-rw-r--r--qmpmainwindow.hpp58
-rw-r--r--qmpmainwindow.ui398
-rw-r--r--qmpmidiplay.cpp159
-rw-r--r--qmpmidiplay.hpp89
-rw-r--r--qmpmidiread.cpp217
-rw-r--r--qmpplistwindow.cpp139
-rw-r--r--qmpplistwindow.hpp51
-rw-r--r--qmpplistwindow.ui260
-rw-r--r--resources.qrc29
69 files changed, 4958 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..2440ab4
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
+Chris Xiong <chirs241097@gmail.com> \ No newline at end of file
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..20d40b6
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+ 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:
+
+ <program> Copyright (C) <year> <name of author>
+ 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>. \ No newline at end of file
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..3e6ead8
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,8 @@
+2015-12-27 primitive version
+Implemented the play list.
+
+2015-12-26 primitive version
+Implemented the stop button, fixed several bugs.
+
+2015-12-25 primitive version
+Implemented the GUI based on the previous CLI version. \ No newline at end of file
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..6c30758
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,3 @@
+Use qmake or Qt Creator.
+Dependencies: libfluidsynth 1.1.4+, Qt5 (not sure whether 4 will work).
+C++11 is required to build the project.
diff --git a/README.md b/README.md
index 317a332..fa0c25a 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,12 @@
# QMidiPlayer
A cross-platform midi file player based on libfluidsynth and Qt.
+
+Currently it's still very incomplete and not suitable for everyday use.
+
+Planned features:
+> Channel mute/solo (not implemented)
+> Editing channel parameters on-the-fly (not implemented)
+> Playlists (partially implemented)
+> Editing synthesizer effects (not implemented)
+> Visualization (not implemented)
+> Rendering midi to wave file (not implemented)
diff --git a/img/add.png b/img/add.png
new file mode 100644
index 0000000..c9689f5
--- /dev/null
+++ b/img/add.png
Binary files differ
diff --git a/img/add.svg b/img/add.svg
new file mode 100644
index 0000000..9633d20
--- /dev/null
+++ b/img/add.svg
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="add.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/add.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="4.0000001"
+ inkscape:cx="-49.866202"
+ inkscape:cy="30.198528"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <g
+ style="font-style:normal;font-weight:normal;font-size:12px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ id="text4134">
+ <path
+ d="m 33.831772,1018.6203 10.168223,0 0,3.5322 -10.168223,0 0,10.2097 -3.663551,0 0,-10.2097 -10.168223,0 0,-3.5322 10.168223,0 0,-10.2581 3.663551,0 0,10.2581 z"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:49.99999237px;font-family:'Noto Sans UI';-inkscape-font-specification:'Noto Sans UI'"
+ id="path4136"
+ inkscape:connector-curvature="0" />
+ </g>
+ </g>
+</svg>
diff --git a/img/addfolder.png b/img/addfolder.png
new file mode 100644
index 0000000..7f3f713
--- /dev/null
+++ b/img/addfolder.png
Binary files differ
diff --git a/img/addfolder.svg b/img/addfolder.svg
new file mode 100644
index 0000000..0a93aa3
--- /dev/null
+++ b/img/addfolder.svg
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 64.000001 64.000001"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="addfolder.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/addfolder.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.98994949"
+ inkscape:cx="-325.02084"
+ inkscape:cy="60.805234"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36216)">
+ <path
+ style="fill:#666666;fill-rule:evenodd;stroke:#000000;stroke-width:1.59999216;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 16.278644,1006.8891 0,24.7998 32.799838,0 0,-17.5999 -16.799917,0 -3.199984,-7.1999 z"
+ id="path4136"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccccccc" />
+ <path
+ style="fill:#999999;fill-rule:evenodd;stroke:#000000;stroke-width:1.59999216;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 16.278644,1031.5589 -3.999981,-14.2699 32.799839,0 3.99998,14.627 z"
+ id="path4138"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccccc" />
+ <g
+ transform="matrix(0.66666667,0,0,0.66666667,21.587627,355.20009)"
+ style="font-style:normal;font-weight:normal;font-size:12px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ id="text4134">
+ <path
+ d="m 33.831772,1018.6203 10.168223,0 0,3.5322 -10.168223,0 0,10.2097 -3.663551,0 0,-10.2097 -10.168223,0 0,-3.5322 10.168223,0 0,-10.2581 3.663551,0 0,10.2581 z"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:49.99999237px;font-family:'Noto Sans UI';-inkscape-font-specification:'Noto Sans UI'"
+ id="path4136-2"
+ inkscape:connector-curvature="0" />
+ </g>
+ </g>
+</svg>
diff --git a/img/channel.png b/img/channel.png
new file mode 100644
index 0000000..e7d10a4
--- /dev/null
+++ b/img/channel.png
Binary files differ
diff --git a/img/channel.svg b/img/channel.svg
new file mode 100644
index 0000000..a42702e
--- /dev/null
+++ b/img/channel.svg
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="channel.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/stop.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1"
+ inkscape:cx="90.391041"
+ inkscape:cy="8.4527205"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <circle
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.11627889;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4134"
+ cx="14.999998"
+ cy="1011.3622"
+ r="2.4418602" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.89972395;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136"
+ width="31.100273"
+ height="3.1002755"
+ x="20.949858"
+ y="1009.8121" />
+ <circle
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.11627889;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4134-9"
+ cx="14.999998"
+ cy="1021.3622"
+ r="2.44186" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.89972401;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136-9"
+ width="31.100269"
+ height="3.1002755"
+ x="20.949858"
+ y="1019.8121" />
+ <circle
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.11627889;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4134-2"
+ cx="14.999998"
+ cy="1031.3622"
+ r="2.44186" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.89972401;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136-7"
+ width="31.100269"
+ height="3.1002755"
+ x="20.949858"
+ y="1029.812" />
+ </g>
+</svg>
diff --git a/img/clear.png b/img/clear.png
new file mode 100644
index 0000000..092a885
--- /dev/null
+++ b/img/clear.png
Binary files differ
diff --git a/img/clear.svg b/img/clear.svg
new file mode 100644
index 0000000..4268e65
--- /dev/null
+++ b/img/clear.svg
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="clear.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/clear.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6568544"
+ inkscape:cx="-5.4912987"
+ inkscape:cy="25.599706"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <g
+ style="font-style:normal;font-weight:normal;font-size:12px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ id="text4134"
+ transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,-712.13245,321.48458)">
+ <path
+ d="m 33.831772,1018.6203 10.168223,0 0,3.5322 -10.168223,0 0,10.2097 -3.663551,0 0,-10.2097 -10.168223,0 0,-3.5322 10.168223,0 0,-10.2581 3.663551,0 0,10.2581 z"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:49.99999237px;font-family:'Noto Sans UI';-inkscape-font-specification:'Noto Sans UI'"
+ id="path4136"
+ inkscape:connector-curvature="0" />
+ </g>
+ </g>
+</svg>
diff --git a/img/convpng b/img/convpng
new file mode 100755
index 0000000..18cdd31
--- /dev/null
+++ b/img/convpng
@@ -0,0 +1,7 @@
+#!/bin/bash
+for i in *.svg
+do
+inkscape $i --export-png=`echo "$i" | sed 's/.\{4\}$//'`.png --export-area-page --export-dpi=90
+done
+i=qmidiplyr.svg
+inkscape $i --export-png=`echo "$i" | sed 's/.\{4\}$//'`.png --export-area-page --export-width=64 \ No newline at end of file
diff --git a/img/down.png b/img/down.png
new file mode 100644
index 0000000..6b4b68f
--- /dev/null
+++ b/img/down.png
Binary files differ
diff --git a/img/down.svg b/img/down.svg
new file mode 100644
index 0000000..16f06eb
--- /dev/null
+++ b/img/down.svg
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="down.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/down.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.8284272"
+ inkscape:cx="-58.082214"
+ inkscape:cy="15.50142"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.99999976;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 31.999996,1006.991 0,25.8094"
+ id="path4134"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.99999976;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 23.999997,1024.319 7.999999,8 7.999999,-8"
+ id="path4136"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccc" />
+ </g>
+</svg>
diff --git a/img/effects.png b/img/effects.png
new file mode 100644
index 0000000..6679577
--- /dev/null
+++ b/img/effects.png
Binary files differ
diff --git a/img/effects.svg b/img/effects.svg
new file mode 100644
index 0000000..173deca
--- /dev/null
+++ b/img/effects.svg
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="effects.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/list.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1"
+ inkscape:cx="27.548312"
+ inkscape:cy="29.448228"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <g
+ style="font-style:normal;font-weight:normal;font-size:12px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ id="text4202"
+ transform="matrix(0.70799976,0,0,0.99613674,8.3985438,4.7944643)">
+ <path
+ d="m 14.779489,1035.5684 -4.042968,0 0,-32.1241 17.951659,0 0,3.5596 -13.908691,0 0,11.3818 13.051757,0 0,3.5376 -13.051757,0 0,13.6451 z"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:44.99999619px;font-family:'Noto Sans UI';-inkscape-font-specification:'Noto Sans UI'"
+ id="path4207"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 55.934271,1035.5684 -4.592285,0 -8.503417,-13.9527 -8.635253,13.9527 -4.284668,0 10.67871,-16.7432 -9.997557,-15.3809 4.504394,0 7.86621,12.5904 7.932128,-12.5904 4.262695,0 -9.93164,15.293 10.700683,16.8311 z"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:44.99999619px;font-family:'Noto Sans UI';-inkscape-font-specification:'Noto Sans UI'"
+ id="path4209"
+ inkscape:connector-curvature="0" />
+ </g>
+ </g>
+</svg>
diff --git a/img/list.png b/img/list.png
new file mode 100644
index 0000000..1cb81c6
--- /dev/null
+++ b/img/list.png
Binary files differ
diff --git a/img/list.svg b/img/list.svg
new file mode 100644
index 0000000..e0f2316
--- /dev/null
+++ b/img/list.svg
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="list.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/channel.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6568542"
+ inkscape:cx="27.548312"
+ inkscape:cy="23.83739"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.00516474;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136"
+ width="38.994831"
+ height="3.0861244"
+ x="12.502581"
+ y="1009.8648" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.00516486;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136-9"
+ width="38.994827"
+ height="3.0861244"
+ x="12.502581"
+ y="1019.8192" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.00516486;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136-7"
+ width="38.994827"
+ height="3.0861244"
+ x="12.502581"
+ y="1029.7734" />
+ </g>
+</svg>
diff --git a/img/load.png b/img/load.png
new file mode 100644
index 0000000..3e6f044
--- /dev/null
+++ b/img/load.png
Binary files differ
diff --git a/img/load.svg b/img/load.svg
new file mode 100644
index 0000000..914fceb
--- /dev/null
+++ b/img/load.svg
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 64.000001 64.000001"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="load.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/load.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.98994949"
+ inkscape:cx="-4.5826272"
+ inkscape:cy="91.194173"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36216)">
+ <path
+ style="fill:#666666;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 13.300053,1004.5642 0,31 41,0 0,-22 -21,0 -4,-9 z"
+ id="path4136"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccccccc" />
+ <path
+ style="fill:#999999;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 13.300053,1035.4017 -5.0000003,-17.8375 41.0000003,0 5,18.2838 z"
+ id="path4138"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccccc" />
+ </g>
+</svg>
diff --git a/img/next.png b/img/next.png
new file mode 100644
index 0000000..fdb505b
--- /dev/null
+++ b/img/next.png
Binary files differ
diff --git a/img/next.svg b/img/next.svg
new file mode 100644
index 0000000..ef555af
--- /dev/null
+++ b/img/next.svg
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="next.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/prev.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.0000001"
+ inkscape:cx="-3.1252991"
+ inkscape:cy="13.400568"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <path
+ style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 12.499999,1001.3622 0,36 33.999996,-18 z"
+ id="path4225"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="cccc" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.55193388;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4812"
+ width="1.4480658"
+ height="35.448063"
+ x="-49.29266"
+ y="1001.6382"
+ transform="scale(-1,1)" />
+ </g>
+</svg>
diff --git a/img/pause.png b/img/pause.png
new file mode 100644
index 0000000..9808fc4
--- /dev/null
+++ b/img/pause.png
Binary files differ
diff --git a/img/pause.svg b/img/pause.svg
new file mode 100644
index 0000000..14cb66d
--- /dev/null
+++ b/img/pause.svg
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="pause.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/pause.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1.4142136"
+ inkscape:cx="56.975574"
+ inkscape:cy="77.42247"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.44353294;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136"
+ width="11.556466"
+ height="35.556461"
+ x="37.221764"
+ y="1001.584"
+ rx="0"
+ ry="0" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.44353285;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136-5"
+ width="11.556466"
+ height="35.556461"
+ x="15.221765"
+ y="1001.584"
+ rx="0"
+ ry="0" />
+ </g>
+</svg>
diff --git a/img/play.png b/img/play.png
new file mode 100644
index 0000000..5be2b25
--- /dev/null
+++ b/img/play.png
Binary files differ
diff --git a/img/play.svg b/img/play.svg
new file mode 100644
index 0000000..0bb746d
--- /dev/null
+++ b/img/play.svg
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="play.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/pause.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="8.0000002"
+ inkscape:cx="26.247359"
+ inkscape:cy="33.931527"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <path
+ style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 14.999998,1001.3622 0,36 33.999996,-18 z"
+ id="path4225"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="cccc" />
+ </g>
+</svg>
diff --git a/img/prev.png b/img/prev.png
new file mode 100644
index 0000000..7a14d17
--- /dev/null
+++ b/img/prev.png
Binary files differ
diff --git a/img/prev.svg b/img/prev.svg
new file mode 100644
index 0000000..85df2fd
--- /dev/null
+++ b/img/prev.svg
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="prev.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/play.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.0000001"
+ inkscape:cx="-3.1252991"
+ inkscape:cy="13.400568"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <path
+ style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 49.568626,1001.3622 0,36 -33.999996,-18 z"
+ id="path4225"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="cccc" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.55193388;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4812"
+ width="1.4480658"
+ height="35.448063"
+ x="12.775966"
+ y="1001.6382" />
+ </g>
+</svg>
diff --git a/img/qmidiplyr.png b/img/qmidiplyr.png
new file mode 100644
index 0000000..190e584
--- /dev/null
+++ b/img/qmidiplyr.png
Binary files differ
diff --git a/img/qmidiplyr.svg b/img/qmidiplyr.svg
new file mode 100644
index 0000000..40849a3
--- /dev/null
+++ b/img/qmidiplyr.svg
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ x="0"
+ y="0"
+ width="200"
+ height="200"
+ viewBox="0 0 200 200"
+ id="svg2"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="qmidiplyr.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/qmidiplyr.png"
+ inkscape:export-xdpi="28.799999"
+ inkscape:export-ydpi="28.799999">
+ <metadata
+ id="metadata36">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs34" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ id="namedview32"
+ showgrid="false"
+ inkscape:zoom="1"
+ inkscape:cx="18.954123"
+ inkscape:cy="113.67039"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2" />
+ <style
+ type="text/css"
+ id="style4">
+ .st0{fill:none;stroke:#000;stroke-width:2;}
+ .st1{fill:#fff;stroke:#000;stroke-width:2;stroke-linejoin:round;}
+ .st2{font-family:Liberation Sans,Arial;}
+ .st3{font-size:17px;}
+</style>
+ <circle
+ style="fill:none;stroke:#000000;stroke-width:4;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
+ id="circle7"
+ r="87.5"
+ cy="100"
+ cx="100"
+ class="st1" />
+ <path
+ style="fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-dasharray:none"
+ inkscape:connector-curvature="0"
+ id="path9"
+ d="m 100,20.5 c -43.8,0 -79.5,35.7 -79.5,79.5 0,38.4 27.4,70.5 63.6,77.9 0.8,-8.1 7.6,-14.4 15.9,-14.4 8.3,0 15.1,6.3 15.9,14.4 36.2,-7.4 63.6,-39.5 63.6,-77.9 0,-43.8 -35.7,-79.5 -79.5,-79.5 z"
+ class="st0" />
+ <circle
+ style="fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-dasharray:none"
+ id="circle11"
+ r="11"
+ cy="100.1"
+ cx="53.900002"
+ class="st0" />
+ <circle
+ style="fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-dasharray:none"
+ id="circle13"
+ r="11"
+ cy="67.5"
+ cx="67.400002"
+ class="st0" />
+ <circle
+ style="fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-dasharray:none"
+ id="circle15"
+ r="11"
+ cy="53.900002"
+ cx="99.900002"
+ class="st0" />
+ <circle
+ style="fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-dasharray:none"
+ id="circle17"
+ r="11"
+ cy="67.400002"
+ cx="132.5"
+ class="st0" />
+ <circle
+ style="fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-dasharray:none"
+ id="circle19"
+ r="11"
+ cy="99.900002"
+ cx="146.10001"
+ class="st0" />
+ <path
+ transform="matrix(0.70485343,0.70935297,-0.70935297,0.70485343,0,0)"
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:4;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 196.88338,6.1670594 59.2874,0 0,1.1302898 -59.2874,0 z"
+ id="rect4175" />
+</svg>
diff --git a/img/remove.png b/img/remove.png
new file mode 100644
index 0000000..ef7cb76
--- /dev/null
+++ b/img/remove.png
Binary files differ
diff --git a/img/remove.svg b/img/remove.svg
new file mode 100644
index 0000000..25a863d
--- /dev/null
+++ b/img/remove.svg
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="remove.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/remove.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="4.0000001"
+ inkscape:cx="-1.6257549"
+ inkscape:cy="14.402243"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ showguides="false" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <g
+ style="font-style:normal;font-weight:normal;font-size:12px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ id="text4134">
+ <path
+ d="m 43.999995,1018.6203 0,3.5322 c -7.999999,0 -15.999998,0 -23.999997,0 l 0,-3.5322 c 7.999999,0 15.999998,0 23.999997,0 z"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:49.99999237px;font-family:'Noto Sans UI';-inkscape-font-specification:'Noto Sans UI'"
+ id="path4136"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccccc" />
+ </g>
+ </g>
+</svg>
diff --git a/img/repeat-all.png b/img/repeat-all.png
new file mode 100644
index 0000000..49c18bd
--- /dev/null
+++ b/img/repeat-all.png
Binary files differ
diff --git a/img/repeat-all.svg b/img/repeat-all.svg
new file mode 100644
index 0000000..67cc427
--- /dev/null
+++ b/img/repeat-all.svg
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 64.000001 64.000001"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="repeat-all.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/repeat-all.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="7.919596"
+ inkscape:cx="11.419593"
+ inkscape:cy="25.719645"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ showguides="false" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36216)">
+ <path
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4159"
+ sodipodi:type="arc"
+ sodipodi:cx="32.975533"
+ sodipodi:cy="1020.2973"
+ sodipodi:rx="16.414978"
+ sodipodi:ry="16.414978"
+ sodipodi:start="3.6651914"
+ sodipodi:end="2.6179939"
+ d="m 18.759744,1012.0898 a 16.414978,16.414978 0 0 1 18.464297,-7.6481 16.414978,16.414978 0 0 1 12.16647,15.8556 16.414978,16.414978 0 0 1 -12.16647,15.8557 16.414978,16.414978 0 0 1 -18.464297,-7.6482"
+ sodipodi:open="true" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 17.679143,998.76929 0,13.89591 12.791714,0 0,-0.1958"
+ id="path4161"
+ inkscape:connector-curvature="0" />
+ <g
+ style="font-style:normal;font-weight:normal;font-size:12px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ id="text4156"
+ transform="translate(-1.1364216,-0.25253813)">
+ <path
+ d="m 40.633369,1029.8622 -2.578125,-6.6358 -8.496093,0 -2.548828,6.6358 -2.72461,0 8.364258,-21.5039 2.431641,0 8.349609,21.5039 -2.797852,0 z m -3.383789,-9.0235 -2.402343,-6.4892 -1.025391,-3.208 q -0.439453,1.7578 -0.922852,3.208 l -2.43164,6.4892 6.782226,0 z"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30px;font-family:'Noto Sans UI';-inkscape-font-specification:'Noto Sans UI'"
+ id="path4162"
+ inkscape:connector-curvature="0" />
+ </g>
+ </g>
+</svg>
diff --git a/img/repeat-base.png b/img/repeat-base.png
new file mode 100644
index 0000000..9a7cd70
--- /dev/null
+++ b/img/repeat-base.png
Binary files differ
diff --git a/img/repeat-base.svg b/img/repeat-base.svg
new file mode 100644
index 0000000..3380dbc
--- /dev/null
+++ b/img/repeat-base.svg
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 64.000001 64.000001"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="repeat.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/load.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.49497475"
+ inkscape:cx="-373.62247"
+ inkscape:cy="121.70098"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36216)">
+ <path
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4159"
+ sodipodi:type="arc"
+ sodipodi:cx="32.975533"
+ sodipodi:cy="1020.2973"
+ sodipodi:rx="16.414978"
+ sodipodi:ry="16.414978"
+ sodipodi:start="3.6651914"
+ sodipodi:end="2.6179939"
+ d="m 18.759744,1012.0898 a 16.414978,16.414978 0 0 1 18.464297,-7.6481 16.414978,16.414978 0 0 1 12.16647,15.8556 16.414978,16.414978 0 0 1 -12.16647,15.8557 16.414978,16.414978 0 0 1 -18.464297,-7.6482"
+ sodipodi:open="true" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 17.679143,998.76929 0,13.89591 12.791714,0 0,-0.1958"
+ id="path4161"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>
diff --git a/img/repeat-non.png b/img/repeat-non.png
new file mode 100644
index 0000000..765e876
--- /dev/null
+++ b/img/repeat-non.png
Binary files differ
diff --git a/img/repeat-non.svg b/img/repeat-non.svg
new file mode 100644
index 0000000..92c5578
--- /dev/null
+++ b/img/repeat-non.svg
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 64.000001 64.000001"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="repeat-non.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/repeat-non.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.8"
+ inkscape:cx="-74.380629"
+ inkscape:cy="-3.6077795"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ showguides="false" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36216)">
+ <path
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4159"
+ sodipodi:type="arc"
+ sodipodi:cx="32.975533"
+ sodipodi:cy="1020.2973"
+ sodipodi:rx="16.414978"
+ sodipodi:ry="16.414978"
+ sodipodi:start="3.6651914"
+ sodipodi:end="2.6179939"
+ d="m 18.759744,1012.0898 a 16.414978,16.414978 0 0 1 18.464297,-7.6481 16.414978,16.414978 0 0 1 12.16647,15.8556 16.414978,16.414978 0 0 1 -12.16647,15.8557 16.414978,16.414978 0 0 1 -18.464297,-7.6482"
+ sodipodi:open="true" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 17.679143,998.76929 0,13.89591 12.791714,0 0,-0.1958"
+ id="path4161"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 13.707125,1041.6551 38.587782,-38.5898"
+ id="path4135"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>
diff --git a/img/repeat-one.png b/img/repeat-one.png
new file mode 100644
index 0000000..32699e9
--- /dev/null
+++ b/img/repeat-one.png
Binary files differ
diff --git a/img/repeat-one.svg b/img/repeat-one.svg
new file mode 100644
index 0000000..fe243c9
--- /dev/null
+++ b/img/repeat-one.svg
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 64.000001 64.000001"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="repeat-one.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/repeat-one.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="7.919596"
+ inkscape:cx="15.15185"
+ inkscape:cy="41.506609"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ showguides="false" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36216)">
+ <path
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4159"
+ sodipodi:type="arc"
+ sodipodi:cx="32.975533"
+ sodipodi:cy="1020.2973"
+ sodipodi:rx="16.414978"
+ sodipodi:ry="16.414978"
+ sodipodi:start="3.6651914"
+ sodipodi:end="2.6179939"
+ d="m 18.759744,1012.0898 a 16.414978,16.414978 0 0 1 18.464297,-7.6481 16.414978,16.414978 0 0 1 12.16647,15.8556 16.414978,16.414978 0 0 1 -12.16647,15.8557 16.414978,16.414978 0 0 1 -18.464297,-7.6482"
+ sodipodi:open="true" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 17.679143,998.76929 0,13.89591 12.791714,0 0,-0.1958"
+ id="path4161"
+ inkscape:connector-curvature="0" />
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:12px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="27.414324"
+ y="1028.8105"
+ id="text4183"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4185"
+ x="27.414324"
+ y="1028.8105"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30px;font-family:'Noto Sans UI';-inkscape-font-specification:'Noto Sans UI'">1</tspan></text>
+ </g>
+</svg>
diff --git a/img/save.png b/img/save.png
new file mode 100644
index 0000000..0ecdc76
--- /dev/null
+++ b/img/save.png
Binary files differ
diff --git a/img/save.svg b/img/save.svg
new file mode 100644
index 0000000..8e84aed
--- /dev/null
+++ b/img/save.svg
@@ -0,0 +1,523 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg2985"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="save.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/save.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <title
+ id="title3080">Save all</title>
+ <defs
+ id="defs2987">
+ <linearGradient
+ y2="-5.9535513"
+ x2="24.285765"
+ y1="14.716651"
+ x1="9.7099533"
+ gradientTransform="matrix(1.117647,0,0,1.1,-290.08518,-48.65)"
+ gradientUnits="userSpaceOnUse"
+ id="linearGradient5471"
+ xlink:href="#linearGradient6056"
+ inkscape:collect="always" />
+ <linearGradient
+ y2="7.8355665"
+ x2="16.552481"
+ y1="2.9626985"
+ x1="16.552481"
+ gradientTransform="matrix(0.9803921,0,0,1.1,-287.3793,-48.3)"
+ gradientUnits="userSpaceOnUse"
+ id="linearGradient5467"
+ xlink:href="#linearGradient6108"
+ inkscape:collect="always" />
+ <linearGradient
+ gradientTransform="translate(-288.67342,-47.5)"
+ y2="3.6734154"
+ x2="14.04664"
+ y1="6.504528"
+ x1="18.963779"
+ gradientUnits="userSpaceOnUse"
+ id="linearGradient5464"
+ xlink:href="#linearGradient4916"
+ inkscape:collect="always" />
+ <linearGradient
+ y2="3.7493312"
+ x2="18.561535"
+ y1="4.5279388"
+ x1="17.68836"
+ gradientTransform="matrix(1.3472897,0,0,1.3356241,-295.4037,-49.007697)"
+ gradientUnits="userSpaceOnUse"
+ id="linearGradient5462"
+ xlink:href="#linearGradient6076"
+ inkscape:collect="always" />
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient5897">
+ <stop
+ style="stop-color:#729fcf;stop-opacity:1;"
+ offset="0"
+ id="stop5899" />
+ <stop
+ style="stop-color:#729fcf;stop-opacity:0;"
+ offset="1"
+ id="stop5901" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient4916">
+ <stop
+ style="stop-color:#888a85;stop-opacity:1"
+ offset="0"
+ id="stop4918" />
+ <stop
+ style="stop-color:#5d5f5b;stop-opacity:0;"
+ offset="1"
+ id="stop4920" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient6108">
+ <stop
+ style="stop-color:#000000;stop-opacity:1;"
+ offset="0"
+ id="stop6110" />
+ <stop
+ style="stop-color:#000000;stop-opacity:0;"
+ offset="1"
+ id="stop6112" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient6076">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:1"
+ offset="0"
+ id="stop6078" />
+ <stop
+ style="stop-color:#cbcbcb;stop-opacity:1"
+ offset="1"
+ id="stop6080" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient6056">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:1"
+ offset="0"
+ id="stop6058" />
+ <stop
+ style="stop-color:#d3d7cf;stop-opacity:1"
+ offset="1"
+ id="stop6060" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient6056"
+ id="linearGradient6062"
+ x1="9.7099533"
+ y1="14.716651"
+ x2="24.285765"
+ y2="-5.9535513"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1.117647,0,0,1.1,-1.4117645,-1.15)" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient6076"
+ id="linearGradient6082"
+ x1="17.68836"
+ y1="4.5279388"
+ x2="18.561535"
+ y2="3.7493312"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1.3472897,0,0,1.3356241,-6.7302791,-1.5076969)" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient6108"
+ id="linearGradient6114"
+ x1="16.552481"
+ y1="2.9626985"
+ x2="16.552481"
+ y2="7.8355665"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.9803921,0,0,1.1,1.2941182,-0.8000001)" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4916"
+ id="linearGradient4922"
+ x1="18.963779"
+ y1="6.504528"
+ x2="14.04664"
+ y2="3.6734154"
+ gradientUnits="userSpaceOnUse" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient5897"
+ id="linearGradient5903"
+ x1="4.1902652"
+ y1="25.646143"
+ x2="14.649404"
+ y2="12.007792"
+ gradientUnits="userSpaceOnUse" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient5897"
+ id="linearGradient5929"
+ gradientUnits="userSpaceOnUse"
+ x1="4.1902652"
+ y1="25.646143"
+ x2="14.649404"
+ y2="12.007792" />
+ <linearGradient
+ gradientUnits="userSpaceOnUse"
+ y2="19.035276"
+ x2="21.347517"
+ y1="16.874674"
+ x1="19.28145"
+ id="linearGradient6051"
+ xlink:href="#linearGradient6045"
+ inkscape:collect="always"
+ gradientTransform="matrix(0.9168831,0,0,0.9169468,1.6694447,1.4811158)" />
+ <linearGradient
+ gradientTransform="matrix(0.2947292,0,0,0.2947292,9.2434959,8.1106157)"
+ gradientUnits="userSpaceOnUse"
+ y2="22.40896"
+ x2="52.986004"
+ y1="17.590158"
+ x1="48.690983"
+ id="linearGradient5914"
+ xlink:href="#linearGradient5908"
+ inkscape:collect="always" />
+ <linearGradient
+ gradientTransform="matrix(0.4140801,0,0,0.4496565,2.2850397,5.3289509)"
+ gradientUnits="userSpaceOnUse"
+ y2="18.158607"
+ x2="56.384373"
+ y1="14.8742"
+ x1="53.454674"
+ id="linearGradient4930"
+ xlink:href="#linearGradient4924"
+ inkscape:collect="always" />
+ <linearGradient
+ gradientTransform="matrix(0.7214926,0,0,0.7210249,4.4502003,-1.0759528)"
+ gradientUnits="userSpaceOnUse"
+ y2="23.074486"
+ x2="19.445436"
+ y1="28.73134"
+ x1="25.279068"
+ id="linearGradient5933"
+ xlink:href="#linearGradient5927"
+ inkscape:collect="always" />
+ <radialGradient
+ r="12.5"
+ fy="16.093563"
+ fx="48.178337"
+ cy="16.093563"
+ cx="48.178337"
+ gradientTransform="matrix(0.117808,0.165688,-0.160285,0.113967,37.8996,24.60705)"
+ gradientUnits="userSpaceOnUse"
+ id="radialGradient3740"
+ xlink:href="#linearGradient2812"
+ inkscape:collect="always" />
+ <radialGradient
+ gradientTransform="matrix(0.710234,0.703965,-0.828897,0.836278,-17.34172,-12.95082)"
+ gradientUnits="userSpaceOnUse"
+ r="12.5"
+ fy="17.172701"
+ fx="18.389807"
+ cy="17.172701"
+ cx="18.389807"
+ id="radialGradient2818"
+ xlink:href="#linearGradient2812"
+ inkscape:collect="always" />
+ <linearGradient
+ gradientTransform="translate(-21.33061,6.070707)"
+ gradientUnits="userSpaceOnUse"
+ y2="23.00688"
+ x2="42.993927"
+ y1="18.054306"
+ x1="42.993927"
+ id="linearGradient2802"
+ xlink:href="#linearGradient2796"
+ inkscape:collect="always" />
+ <radialGradient
+ gradientTransform="matrix(1.515341,0.01822282,-0.01854671,1.542275,-9.89215,-9.850491)"
+ gradientUnits="userSpaceOnUse"
+ r="9.5"
+ fy="17.498907"
+ fx="19.825111"
+ cy="17.498907"
+ cx="19.825111"
+ id="radialGradient2794"
+ xlink:href="#linearGradient2788"
+ inkscape:collect="always" />
+ <radialGradient
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1,0,0,0.176471,0,13.58824)"
+ r="8.5"
+ fy="16.5"
+ fx="9.5"
+ cy="16.5"
+ cx="9.5"
+ id="radialGradient3221"
+ xlink:href="#linearGradient3215"
+ inkscape:collect="always" />
+ <linearGradient
+ id="linearGradient3215"
+ inkscape:collect="always">
+ <stop
+ id="stop3217"
+ offset="0"
+ style="stop-color:#2e3436;stop-opacity:1;" />
+ <stop
+ id="stop3219"
+ offset="1"
+ style="stop-color:#2e3436;stop-opacity:0;" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient2788">
+ <stop
+ id="stop2790"
+ offset="0"
+ style="stop-color:#729fcf;stop-opacity:1;" />
+ <stop
+ id="stop2792"
+ offset="1"
+ style="stop-color:white;stop-opacity:1;" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient2796"
+ inkscape:collect="always">
+ <stop
+ id="stop2798"
+ offset="0"
+ style="stop-color:#204a87;stop-opacity:1;" />
+ <stop
+ id="stop2800"
+ offset="1"
+ style="stop-color:#1a3c6e;stop-opacity:1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient2812">
+ <stop
+ id="stop2814"
+ offset="0"
+ style="stop-color:#3070ce;stop-opacity:1" />
+ <stop
+ id="stop2816"
+ offset="1"
+ style="stop-color:#1a3c6e;stop-opacity:1;" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient5927"
+ inkscape:collect="always">
+ <stop
+ id="stop5929"
+ offset="0"
+ style="stop-color:#c17d11;stop-opacity:1;" />
+ <stop
+ id="stop5931"
+ offset="1"
+ style="stop-color:#c17d11;stop-opacity:0;" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient4924"
+ inkscape:collect="always">
+ <stop
+ id="stop4926"
+ offset="0"
+ style="stop-color:#ef2929;stop-opacity:1" />
+ <stop
+ id="stop4928"
+ offset="1"
+ style="stop-color:#cc0000;stop-opacity:1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient5908"
+ inkscape:collect="always">
+ <stop
+ id="stop5910"
+ offset="0"
+ style="stop-color:#d3d7cf;stop-opacity:1;" />
+ <stop
+ id="stop5912"
+ offset="1"
+ style="stop-color:#888a85;stop-opacity:1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient6045"
+ inkscape:collect="always">
+ <stop
+ id="stop6047"
+ offset="0"
+ style="stop-color:#ffffff;stop-opacity:1;" />
+ <stop
+ id="stop6049"
+ offset="1"
+ style="stop-color:#ffffff;stop-opacity:0;" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient6045"
+ id="linearGradient6018"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.9168831,0,0,0.9169468,3.9818882,-0.8641132)"
+ x1="19.28145"
+ y1="16.874674"
+ x2="21.347517"
+ y2="19.035276" />
+ <linearGradient
+ id="linearGradient5222">
+ <stop
+ id="stop5224"
+ offset="0"
+ style="stop-color:#7ea5d6;stop-opacity:1;" />
+ <stop
+ id="stop5226"
+ offset="1"
+ style="stop-color:#3465a4;stop-opacity:1;" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient5269">
+ <stop
+ id="stop5271"
+ offset="0"
+ style="stop-color:#c6c6c6;stop-opacity:1;" />
+ <stop
+ style="stop-color:#ffffff;stop-opacity:1;"
+ offset="0.5"
+ id="stop5277" />
+ <stop
+ id="stop5273"
+ offset="1"
+ style="stop-color:#a5a5a5;stop-opacity:1;" />
+ </linearGradient>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="4.9497475"
+ inkscape:cx="11.355358"
+ inkscape:cy="19.99291"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ inkscape:grid-bbox="true"
+ inkscape:document-units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata2990">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title>Save all</dc:title>
+ <dc:creator>
+ <cc:Agent>
+ <dc:title />
+ </cc:Agent>
+ </dc:creator>
+ <dc:description>Based on Jakub Steiner &quot;Floppy&quot; icon from GTK sock icon</dc:description>
+ <cc:license
+ rdf:resource="http://creativecommons.org/licenses/LGPL/2.1/" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1"
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ transform="translate(0,16)">
+ <g
+ id="g4210"
+ transform="matrix(1.2253938,0,0,1.2253938,-8.5703354,-3.1493052)">
+ <path
+ inkscape:connector-curvature="0"
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#333333;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.4865638;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
+ d="m 17.53,0.558 1.41e-4,26.466099 3.364721,3.364721 27.791138,1.8e-4 0,0 0,-29.830652 0,-3.48e-4 -31.156,0 z"
+ id="path4236"
+ sodipodi:nodetypes="ccccccccc" />
+ <path
+ inkscape:connector-curvature="0"
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999994;marker:none;enable-background:accumulate"
+ d="M 44.988152,4.3184227 44.988,16.196 l 0,0 -23.785,0 0,0 1.29e-4,-11.8775773 z"
+ id="path4240"
+ sodipodi:nodetypes="ccccccc" />
+ <rect
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#333333;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999994;marker:none;enable-background:accumulate"
+ id="rect4242"
+ width="23.785023"
+ height="4.4596915"
+ x="21.203129"
+ y="-0.15622033" />
+ <rect
+ y="2.8169074"
+ x="21.203129"
+ height="1.4865638"
+ width="23.785023"
+ id="rect4244"
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999994;marker:none;enable-background:accumulate" />
+ <rect
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999994;marker:none;enable-background:accumulate"
+ id="rect4246"
+ width="23.785023"
+ height="1.4865638"
+ x="21.203129"
+ y="-0.15622033" />
+ <rect
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#babdb6;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999994;marker:none;enable-background:accumulate"
+ id="rect4248"
+ width="17.838766"
+ height="1.4865639"
+ x="24.176258"
+ y="7.2765989" />
+ <rect
+ y="11.736291"
+ x="24.176258"
+ height="1.4865639"
+ width="17.838766"
+ id="rect4250"
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#babdb6;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999994;marker:none;enable-background:accumulate" />
+ <path
+ inkscape:connector-curvature="0"
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#999999;fill-opacity:1;fill-rule:evenodd;stroke:#555753;stroke-width:1.4865638;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
+ d="M 41.271742,30.318339 41.272,18.426 l 0,0 -17.839,0 0,0 -2.5e-5,11.892339 z"
+ id="path4254"
+ sodipodi:nodetypes="ccccccc" />
+ <rect
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#555753;stroke-width:1.4865638;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
+ id="rect4258"
+ width="2.9731278"
+ height="5.8533459"
+ x="27.892668"
+ y="21.491867" />
+ <path
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccccccc"
+ id="path4260"
+ d="M 39.899528,28.938976 39.9,19.912 l 0,0 -15.095,0 0,0 1.87e-4,9.026976 z"
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.34482763;fill:none;stroke:#cccccc;stroke-width:1.48699999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate" />
+ </g>
+ </g>
+</svg>
diff --git a/img/save8.svg b/img/save8.svg
new file mode 100644
index 0000000..66a5b23
--- /dev/null
+++ b/img/save8.svg
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="save.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/save.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6568544"
+ inkscape:cx="18.507974"
+ inkscape:cy="28.471807"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.02776825;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136-5"
+ width="46.972225"
+ height="46.972225"
+ x="8.5138836"
+ y="999.8761"
+ rx="0"
+ ry="0" />
+ <circle
+ style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#999999;stroke-width:2.66666651;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4135"
+ cx="31.999996"
+ cy="1022.0286"
+ r="5.333333" />
+ <rect
+ style="opacity:1;fill:#333333;fill-opacity:1;stroke:#333333;stroke-width:2.38094759;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136"
+ width="2.9523852"
+ height="12.285718"
+ x="30.523804"
+ y="1033.2191"
+ ry="1.793975"
+ rx="1.4761926" />
+ <circle
+ style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="path4138"
+ cx="37.333332"
+ cy="1014.0289"
+ r="1.3333333" />
+ </g>
+</svg>
diff --git a/img/settings.png b/img/settings.png
new file mode 100644
index 0000000..f238b9f
--- /dev/null
+++ b/img/settings.png
Binary files differ
diff --git a/img/settings.svg b/img/settings.svg
new file mode 100644
index 0000000..d3123fa
--- /dev/null
+++ b/img/settings.svg
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="settings-masked.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/settings.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90">
+ <defs
+ id="defs4">
+ <mask
+ maskUnits="userSpaceOnUse"
+ id="mask4163">
+ <g
+ id="g4165"
+ transform="matrix(0.77443286,0.63265609,-0.63265609,0.77443286,0,0)">
+ <rect
+ y="993.69891"
+ x="3.4457266"
+ height="38.516716"
+ width="39.234055"
+ id="rect4167"
+ style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:9.10745335;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+ <path
+ id="path4169"
+ d="m 26.048828,990.71376 -25.5878905,20.90434 5.8183594,7.1211 6.3164061,-5.1602 -1.238281,3.2676 8.939453,10.9414 13.943359,-2.2715 5.00586,-13.2109 -8.9375,-10.9395 -3.449219,0.5606 5.007813,-4.08989 -5.81836,-7.12305 z"
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:2.2294395;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ inkscape:connector-curvature="0" />
+ </g>
+ </mask>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6568542"
+ inkscape:cx="15.80053"
+ inkscape:cy="27.864703"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <path
+ transform="matrix(0.77443287,-0.6326561,0.6326561,0.77443287,0,0)"
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:2.44087267;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ mask="url(#mask4163)"
+ d="m -605.90217,805.51636 a 16.396597,16.396597 0 0 1 -16.3966,16.39659 16.396597,16.396597 0 0 1 -16.39659,-16.39659 16.396597,16.396597 0 0 1 16.39659,-16.3966 16.396597,16.396597 0 0 1 16.3966,16.3966 z"
+ id="path4144" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.97508562;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4148"
+ width="9.0355597"
+ height="44.994835"
+ x="-626.81653"
+ y="821.72467"
+ transform="matrix(0.77443287,-0.6326561,0.6326561,0.77443287,0,0)" />
+ </g>
+</svg>
diff --git a/img/shuffle-off.png b/img/shuffle-off.png
new file mode 100644
index 0000000..fe80c50
--- /dev/null
+++ b/img/shuffle-off.png
Binary files differ
diff --git a/img/shuffle-off.svg b/img/shuffle-off.svg
new file mode 100644
index 0000000..ce8e46a
--- /dev/null
+++ b/img/shuffle-off.svg
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 64.000001 64.000001"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="shuffle-off.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/shuffle-off.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4">
+ <inkscape:path-effect
+ effect="spiro"
+ id="path-effect4266"
+ is_visible="true" />
+ <inkscape:path-effect
+ effect="spiro"
+ id="path-effect4252"
+ is_visible="true" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="3.959798"
+ inkscape:cx="-47.484131"
+ inkscape:cy="31.468806"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ showguides="false" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36216)">
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
+ d="m 10,1012.3622 c 18.132512,0 25.870396,16 44.089643,16 m -44.089286,0 c 18.181982,0 25.748614,-16 43.910358,-16"
+ id="path4274"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="cccc" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 49.690031,1009.2372 5.198145,3 -5.198145,3"
+ id="path4334"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccc" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 49.689928,1025.2371 5.198145,3 -5.198145,3"
+ id="path4334-1"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccc" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="M 10.820251,1041.1557 54.838108,997.13764"
+ id="path4138"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>
diff --git a/img/shuffle.png b/img/shuffle.png
new file mode 100644
index 0000000..2d1835c
--- /dev/null
+++ b/img/shuffle.png
Binary files differ
diff --git a/img/shuffle.svg b/img/shuffle.svg
new file mode 100644
index 0000000..6297e92
--- /dev/null
+++ b/img/shuffle.svg
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 64.000001 64.000001"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="shuffle.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/shuffle.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4">
+ <inkscape:path-effect
+ effect="spiro"
+ id="path-effect4266"
+ is_visible="true" />
+ <inkscape:path-effect
+ effect="spiro"
+ id="path-effect4252"
+ is_visible="true" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="14.167632"
+ inkscape:cy="30.896345"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ showguides="false" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36216)">
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
+ d="m 10,1012.3622 c 18.132512,0 25.870396,16 44.089643,16 m -44.089286,0 c 18.181982,0 25.748614,-16 43.910358,-16"
+ id="path4274"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="cccc" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 49.690031,1009.2372 5.198145,3 -5.198145,3"
+ id="path4334"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccc" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 49.689928,1025.2371 5.198145,3 -5.198145,3"
+ id="path4334-1"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccc" />
+ </g>
+</svg>
diff --git a/img/stop.png b/img/stop.png
new file mode 100644
index 0000000..7ae0858
--- /dev/null
+++ b/img/stop.png
Binary files differ
diff --git a/img/stop.svg b/img/stop.svg
new file mode 100644
index 0000000..de5e47f
--- /dev/null
+++ b/img/stop.svg
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="stop.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/stop.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="4.0000001"
+ inkscape:cx="41.883796"
+ inkscape:cy="30.198528"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.74910158;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4136-5"
+ width="33.250893"
+ height="35.250893"
+ x="15.374548"
+ y="1001.7368"
+ rx="0"
+ ry="0" />
+ </g>
+</svg>
diff --git a/img/up.png b/img/up.png
new file mode 100644
index 0000000..59c7f5c
--- /dev/null
+++ b/img/up.png
Binary files differ
diff --git a/img/up.svg b/img/up.svg
new file mode 100644
index 0000000..7bb7a79
--- /dev/null
+++ b/img/up.svg
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="up.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/up.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.8284272"
+ inkscape:cx="-58.082214"
+ inkscape:cy="15.50142"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.99999976;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 31.999996,1033.7332 0,-25.8094"
+ id="path4134"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.99999976;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="m 23.999997,1016.4052 7.999999,-8 7.999999,8"
+ id="path4136"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccc" />
+ </g>
+</svg>
diff --git a/img/visualization.png b/img/visualization.png
new file mode 100644
index 0000000..3df43c4
--- /dev/null
+++ b/img/visualization.png
Binary files differ
diff --git a/img/visualization.svg b/img/visualization.svg
new file mode 100644
index 0000000..ae8ad32
--- /dev/null
+++ b/img/visualization.svg
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ viewBox="0 0 63.999998 63.999996"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="visualization.svg"
+ inkscape:export-filename="/home/chrisoft/devel/qmidiplayer/qmidiplayer/img/effects.png"
+ inkscape:export-xdpi="45"
+ inkscape:export-ydpi="45">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6568542"
+ inkscape:cx="28.15491"
+ inkscape:cy="36.032772"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="694"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.3622)">
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.60849458;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4230"
+ width="39.391502"
+ height="3.391505"
+ x="10.304246"
+ y="1000.6664" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.60849464;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4230-0"
+ width="39.391502"
+ height="3.3915045"
+ x="10.304246"
+ y="1010.6664" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.3145327;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4230-0-5"
+ width="9.6854658"
+ height="3.6854661"
+ x="10.157265"
+ y="1038.5195" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.3145327;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4230-0-5-8"
+ width="9.6854649"
+ height="3.6854656"
+ x="20.157265"
+ y="1023.5195" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.3145327;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4230-0-5-8-9"
+ width="9.6854639"
+ height="3.6854651"
+ x="30.157263"
+ y="1031.5194" />
+ <rect
+ style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.3145327;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect4230-0-5-8-9-7"
+ width="9.685463"
+ height="3.6854646"
+ x="40.157261"
+ y="1023.5195" />
+ </g>
+</svg>
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..7e24b69
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,16 @@
+#include "qmpmainwindow.hpp"
+#include <QApplication>
+#include <QStyle>
+#include <QDesktopWidget>
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc,argv);
+ qmpMainWindow w;
+ w.setGeometry(QStyle::alignedRect(
+ Qt::LeftToRight,Qt::AlignCenter,w.size(),
+ qApp->desktop()->availableGeometry()));
+ w.show();
+
+ return a.exec();
+}
diff --git a/qmidiplayer.pro b/qmidiplayer.pro
new file mode 100644
index 0000000..386ea72
--- /dev/null
+++ b/qmidiplayer.pro
@@ -0,0 +1,30 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2015-12-25T20:24:49
+#
+#-------------------------------------------------
+
+QT += core gui
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+TARGET = qmidiplayer
+TEMPLATE = app
+
+
+SOURCES += main.cpp\
+ qmpmainwindow.cpp \
+ qmpmidiplay.cpp \
+ qmpmidiread.cpp \
+ qmpplistwindow.cpp
+
+HEADERS += qmpmainwindow.hpp \
+ qmpmidiplay.hpp \
+ qmpplistwindow.hpp
+
+FORMS += qmpmainwindow.ui \
+ qmpplistwindow.ui
+
+QMAKE_CXXFLAGS += -std=c++11 -Wall
+LIBS += -lfluidsynth
+RESOURCES = resources.qrc
diff --git a/qmpmainwindow.cpp b/qmpmainwindow.cpp
new file mode 100644
index 0000000..7d2bf0c
--- /dev/null
+++ b/qmpmainwindow.cpp
@@ -0,0 +1,218 @@
+#include <cstdio>
+#include <QUrl>
+#include "qmpmainwindow.hpp"
+#include "ui_qmpmainwindow.h"
+#include "qmpmidiplay.hpp"
+
+qmpMainWindow::qmpMainWindow(QWidget *parent) :
+ QMainWindow(parent),
+ ui(new Ui::qmpMainWindow)
+{
+ ui->setupUi(this);player=new CMidiPlayer();
+ playing=false;stopped=true;dragging=false;
+ plistw=new qmpplistwindow(this);
+ ui->lbFileName->setText("");
+ timer=new QTimer(this);
+ connect(timer,SIGNAL(timeout()),this,SLOT(updateWidgets()));
+}
+
+qmpMainWindow::~qmpMainWindow()
+{
+ delete timer;
+ delete ui;
+}
+
+void qmpMainWindow::closeEvent(QCloseEvent *event)
+{
+ on_pbStop_clicked();
+ event->accept();
+}
+
+void qmpMainWindow::updateWidgets()
+{
+ if(player->isFinished()&&playerTh)
+ {
+ if(!plistw->getRepeat())
+ {
+ timer->stop();stopped=true;playing=false;
+ player->playerDeinit();playerTh->join();
+ delete playerTh;playerTh=NULL;
+ ui->pbPlayPause->setIcon(QIcon(":/img/play.png"));
+ ui->hsTimer->setValue(0);
+ ui->lbPolyphone->setText("Poly: 0/0");
+ ui->lbCurTime->setText("00:00");
+ }
+ else
+ {
+ timer->stop();player->playerDeinit();playerTh->join();
+ delete playerTh;playerTh=NULL;
+ ui->hsTimer->setValue(0);
+ QString fns=plistw->getNextItem();
+ ui->lbFileName->setText(QUrl(fns).fileName());
+ player->playerLoadFile(fns.toStdString().c_str());
+ char ts[100];
+ sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60);
+ ui->lbFinTime->setText(ts);
+ player->playerInit();player->setGain(ui->vsMasterVol->value()/250.);
+ playerTh=new std::thread(&CMidiPlayer::playerThread,player);
+ st=std::chrono::steady_clock::now();offset=0;
+ timer->start(100);
+ }
+ }
+ while(!player->isFinished()&&player->getTCeptr()>player->getStamp(ui->hsTimer->value())
+ &&ui->hsTimer->value()<=100&&!dragging)
+ ui->hsTimer->setValue(ui->hsTimer->value()+1);
+ if(playing)
+ {
+ std::chrono::duration<double> elapsed=
+ std::chrono::duration_cast<std::chrono::duration<double>>(std::chrono::steady_clock::now()-st);
+ char ts[100];
+ sprintf(ts,"%02d:%02d",(int)(elapsed.count()+offset)/60,(int)(elapsed.count()+offset)%60);
+ ui->lbCurTime->setText(ts);
+ sprintf(ts,"Poly: %d/%d",player->getPolyphone(),player->getMaxPolyphone());
+ ui->lbPolyphone->setText(ts);
+ }
+}
+
+void qmpMainWindow::on_pbPlayPause_clicked()
+{
+ playing=!playing;
+ if(stopped)
+ {
+ QString fns=plistw->getFirstItem();
+ if(!fns.length())return(void)(playing=false);
+ ui->lbFileName->setText(QUrl(fns).fileName());
+ player->playerLoadFile(fns.toStdString().c_str());
+ char ts[100];
+ sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60);
+ ui->lbFinTime->setText(ts);
+ player->playerInit();player->setGain(ui->vsMasterVol->value()/250.);
+ playerTh=new std::thread(&CMidiPlayer::playerThread,player);
+ st=std::chrono::steady_clock::now();offset=0;
+ timer->start(100);
+ stopped=false;
+ }
+ else
+ {
+ if(!playing)
+ {
+ player->playerPanic();
+ offset=ui->hsTimer->value()/100.*player->getFtime();
+ }
+ else
+ {
+ st=std::chrono::steady_clock::now();
+ player->setResumed();
+ }
+ player->setTCpaused(!playing);
+ }
+ ui->pbPlayPause->setIcon(QIcon(playing?":/img/pause.png":":/img/play.png"));
+}
+
+void qmpMainWindow::on_hsTimer_sliderPressed()
+{
+ dragging=true;
+}
+
+void qmpMainWindow::on_hsTimer_sliderReleased()
+{
+ dragging=false;
+ if(playing)
+ {
+ if(ui->hsTimer->value()==100){on_pbNext_clicked();return;}
+ player->setTCeptr(player->getStamp(ui->hsTimer->value()));
+ player->playerPanic();
+ offset=ui->hsTimer->value()/100.*player->getFtime();
+ st=std::chrono::steady_clock::now();
+ }
+ else
+ {
+ player->setTCeptr(player->getStamp(ui->hsTimer->value()));
+ offset=ui->hsTimer->value()/100.*player->getFtime();
+ char ts[100];
+ sprintf(ts,"%02d:%02d",(int)(offset)/60,(int)(offset)%60);
+ ui->lbCurTime->setText(ts);
+ }
+}
+
+void qmpMainWindow::on_vsMasterVol_valueChanged()
+{
+ if(!stopped)player->setGain(ui->vsMasterVol->value()/250.);
+}
+
+void qmpMainWindow::on_pbStop_clicked()
+{
+ if(!stopped)
+ {
+ timer->stop();stopped=true;playing=false;
+ player->playerDeinit();
+ if(playerTh){playerTh->join();delete playerTh;playerTh=NULL;}
+ ui->pbPlayPause->setIcon(QIcon(":/img/play.png"));
+ ui->hsTimer->setValue(0);
+ ui->lbPolyphone->setText("Poly: 0/0");
+ ui->lbCurTime->setText("00:00");
+ }
+}
+
+void qmpMainWindow::dialogClosed()
+{
+ if(!plistw->isVisible())ui->pbPList->setChecked(false);
+}
+
+void qmpMainWindow::on_pbPList_clicked()
+{
+ if(ui->pbPList->isChecked())plistw->show();else plistw->close();
+}
+
+void qmpMainWindow::on_pbPrev_clicked()
+{
+ timer->stop();player->playerDeinit();
+ if(playerTh){playerTh->join();delete playerTh;playerTh=NULL;}
+ ui->hsTimer->setValue(0);
+ QString fns=plistw->getPrevItem();
+ ui->lbFileName->setText(QUrl(fns).fileName());
+ player->playerLoadFile(fns.toStdString().c_str());
+ char ts[100];
+ sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60);
+ ui->lbFinTime->setText(ts);
+ player->playerInit();player->setGain(ui->vsMasterVol->value()/250.);
+ playerTh=new std::thread(&CMidiPlayer::playerThread,player);
+ st=std::chrono::steady_clock::now();offset=0;
+ timer->start(100);
+}
+
+void qmpMainWindow::on_pbNext_clicked()
+{
+ timer->stop();player->playerDeinit();
+ if(playerTh){playerTh->join();delete playerTh;playerTh=NULL;}
+ ui->hsTimer->setValue(0);
+ QString fns=plistw->getNextItem();
+ ui->lbFileName->setText(QUrl(fns).fileName());
+ player->playerLoadFile(fns.toStdString().c_str());
+ char ts[100];
+ sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60);
+ ui->lbFinTime->setText(ts);
+ player->playerInit();player->setGain(ui->vsMasterVol->value()/250.);
+ playerTh=new std::thread(&CMidiPlayer::playerThread,player);
+ st=std::chrono::steady_clock::now();offset=0;
+ timer->start(100);
+}
+
+void qmpMainWindow::selectionChanged()
+{
+ stopped=false;playing=true;
+ ui->pbPlayPause->setIcon(QIcon(":/img/pause.png"));
+ timer->stop();player->playerDeinit();
+ if(playerTh){playerTh->join();delete playerTh;playerTh=NULL;}
+ ui->hsTimer->setValue(0);
+ QString fns=plistw->getSelectedItem();
+ ui->lbFileName->setText(QUrl(fns).fileName());
+ player->playerLoadFile(fns.toStdString().c_str());
+ char ts[100];
+ sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60);
+ ui->lbFinTime->setText(ts);
+ player->playerInit();player->setGain(ui->vsMasterVol->value()/250.);
+ playerTh=new std::thread(&CMidiPlayer::playerThread,player);
+ st=std::chrono::steady_clock::now();offset=0;
+ timer->start(100);
+}
diff --git a/qmpmainwindow.hpp b/qmpmainwindow.hpp
new file mode 100644
index 0000000..cfb740d
--- /dev/null
+++ b/qmpmainwindow.hpp
@@ -0,0 +1,58 @@
+#ifndef QMPMAINWINDOW_H
+#define QMPMAINWINDOW_H
+
+#include <QMainWindow>
+#include <QTimer>
+#include <QCloseEvent>
+#include <thread>
+#include <chrono>
+#include "qmpmidiplay.hpp"
+#include "qmpplistwindow.hpp"
+
+namespace Ui {
+ class qmpMainWindow;
+}
+
+class qmpMainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+ public:
+ explicit qmpMainWindow(QWidget *parent = 0);
+ void closeEvent(QCloseEvent *event);
+ ~qmpMainWindow();
+
+ private slots:
+ void on_pbPlayPause_clicked();
+ void updateWidgets();
+
+ void on_hsTimer_sliderPressed();
+
+ void on_hsTimer_sliderReleased();
+
+ void on_vsMasterVol_valueChanged();
+
+ void on_pbStop_clicked();
+
+ void on_pbPList_clicked();
+ void on_pbPrev_clicked();
+
+ void on_pbNext_clicked();
+
+ public slots:
+ void dialogClosed();
+ void selectionChanged();
+
+ private:
+ Ui::qmpMainWindow *ui;
+ QTimer *timer;
+ bool playing,stopped,dragging;
+ std::thread *playerTh=NULL;
+ std::chrono::steady_clock::time_point st;
+ double offset;
+ CMidiPlayer *player;
+ qmpplistwindow *plistw;
+
+};
+
+#endif // QMPMAINWINDOW_HPP
diff --git a/qmpmainwindow.ui b/qmpmainwindow.ui
new file mode 100644
index 0000000..e1bbd29
--- /dev/null
+++ b/qmpmainwindow.ui
@@ -0,0 +1,398 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>qmpMainWindow</class>
+ <widget class="QMainWindow" name="qmpMainWindow">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>435</width>
+ <height>245</height>
+ </rect>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>435</width>
+ <height>245</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>435</width>
+ <height>245</height>
+ </size>
+ </property>
+ <property name="windowTitle">
+ <string>QMidiPlayer</string>
+ </property>
+ <property name="windowIcon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/qmidiplyr.png</normaloff>:/img/qmidiplyr.png</iconset>
+ </property>
+ <widget class="QWidget" name="centralWidget">
+ <widget class="QLabel" name="lbFileName">
+ <property name="geometry">
+ <rect>
+ <x>30</x>
+ <y>20</y>
+ <width>311</width>
+ <height>41</height>
+ </rect>
+ </property>
+ <property name="font">
+ <font>
+ <pointsize>18</pointsize>
+ </font>
+ </property>
+ <property name="text">
+ <string>somefile.mid</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ <widget class="QSlider" name="hsTimer">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>90</y>
+ <width>321</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="pageStep">
+ <number>0</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbPlayPause">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>110</y>
+ <width>61</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/play.png</normaloff>:/img/play.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbStop">
+ <property name="geometry">
+ <rect>
+ <x>80</x>
+ <y>110</y>
+ <width>61</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/stop.png</normaloff>:/img/stop.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbPrev">
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>110</y>
+ <width>61</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/prev.png</normaloff>:/img/prev.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbNext">
+ <property name="geometry">
+ <rect>
+ <x>200</x>
+ <y>110</y>
+ <width>61</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/next.png</normaloff>:/img/next.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbNext_2">
+ <property name="geometry">
+ <rect>
+ <x>280</x>
+ <y>110</y>
+ <width>61</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/settings.png</normaloff>:/img/settings.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbChannels">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>160</y>
+ <width>151</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Channels</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/channel.png</normaloff>:/img/channel.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbPList">
+ <property name="geometry">
+ <rect>
+ <x>190</x>
+ <y>160</y>
+ <width>151</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Playlist</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/list.png</normaloff>:/img/list.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbEfx">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>200</y>
+ <width>151</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Effects</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/effects.png</normaloff>:/img/effects.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbEfx_2">
+ <property name="geometry">
+ <rect>
+ <x>190</x>
+ <y>200</y>
+ <width>151</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Visualization</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/visualization.png</normaloff>:/img/visualization.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QLabel" name="lbPolyphone">
+ <property name="geometry">
+ <rect>
+ <x>320</x>
+ <y>20</y>
+ <width>111</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Poly: 0/0&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ <widget class="QSlider" name="vsMasterVol">
+ <property name="geometry">
+ <rect>
+ <x>370</x>
+ <y>50</y>
+ <width>20</width>
+ <height>160</height>
+ </rect>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="value">
+ <number>50</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ </widget>
+ <widget class="QLabel" name="lbMasterVol">
+ <property name="geometry">
+ <rect>
+ <x>360</x>
+ <y>210</y>
+ <width>61</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Master</string>
+ </property>
+ </widget>
+ <widget class="QLabel" name="lbCurTime">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>70</y>
+ <width>66</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>00:00</string>
+ </property>
+ </widget>
+ <widget class="QLabel" name="lbFinTime">
+ <property name="geometry">
+ <rect>
+ <x>270</x>
+ <y>70</y>
+ <width>66</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>00:00</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pushButton">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>21</width>
+ <height>21</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>?</string>
+ </property>
+ </widget>
+ </widget>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <resources>
+ <include location="resources.qrc"/>
+ </resources>
+ <connections/>
+</ui>
diff --git a/qmpmidiplay.cpp b/qmpmidiplay.cpp
new file mode 100644
index 0000000..9760f81
--- /dev/null
+++ b/qmpmidiplay.cpp
@@ -0,0 +1,159 @@
+#include <cstdio>
+#include <chrono>
+#include <thread>
+#include <fluidsynth.h>
+#include "qmpmidiplay.hpp"
+void CMidiPlayer::fluidInitialize(const char* sf)
+{
+ settings=new_fluid_settings();
+ fluid_settings_setstr(settings,"audio.driver","pulseaudio");
+ fluid_settings_setint(settings,"synth.cpu-cores",1);
+ fluid_settings_setint(settings,"synth.min-note-length",0);
+ fluid_settings_setint(settings,"synth.polyphony",256);
+ synth=new_fluid_synth(settings);
+ adriver=new_fluid_audio_driver(settings,synth);
+ fluid_synth_sfload(synth,sf,1);
+}
+void CMidiPlayer::fluidDeinitialize()
+{
+ if(!synth||!adriver||!settings)return;
+ delete_fluid_audio_driver(adriver);
+ delete_fluid_synth(synth);
+ delete_fluid_settings(settings);
+ synth=NULL;settings=NULL;adriver=NULL;
+}
+void CMidiPlayer::processEvent(const SEvent *e)
+{
+ switch(e->type&0xF0)
+ {
+ case 0x80://Note off
+ fluid_synth_noteoff(synth,e->type&0x0F,e->p1);
+ break;
+ case 0x90://Note on
+ fluid_synth_noteon(synth,e->type&0x0F,e->p1,e->p2);
+ break;
+ case 0xB0://CC
+ fluid_synth_cc(synth,e->type&0x0F,e->p1,e->p2);
+ break;
+ case 0xC0://PC
+ fluid_synth_program_change(synth,e->type&0x0F,e->p1);
+ break;
+ case 0xE0://PW
+ fluid_synth_pitch_bend(synth,e->type&0x0F,e->p1);
+ break;
+ case 0xF0://Meta/SysEx
+ if((e->type&0x0F)==0x0F)
+ {
+ switch(e->p1)
+ {
+ case 0x51:
+ ctempo=e->p2;dpt=ctempo*1000/divs;
+ break;
+ case 0x58:
+ break;
+ case 0x59:
+ break;
+ case 0x01:case 0x02:case 0x03:
+ case 0x04:case 0x05:case 0x06:
+ case 0x07:
+ if(e->str)puts(e->str);
+ break;
+ }
+ }
+ break;
+ }
+}
+void CMidiPlayer::processEventStub(const SEvent *e)
+{
+ if(e->type==0xFF&&e->p1==0x51)
+ {ctempo=e->p2;dpt=ctempo*1000/divs;}
+}
+void CMidiPlayer::playEvents()
+{
+ for(uint32_t ct=midiFile->getEvent(0)->time;tceptr<midiFile->getEventCount();)
+ {
+ while(tcpaused)std::this_thread::sleep_for(std::chrono::milliseconds(100));
+ while(!tcstop&&tceptr<midiFile->getEventCount()&&ct==midiFile->getEvent(tceptr)->time)
+ processEvent(midiFile->getEvent(tceptr++));
+ if(tcstop||tceptr>=midiFile->getEventCount())break;
+ if(resumed)resumed=false;
+ else
+ std::this_thread::sleep_for(std::chrono::nanoseconds(midiFile->getEvent(tceptr)->time-ct)*dpt);
+ ct=midiFile->getEvent(tceptr)->time;
+ }
+ while(!tcstop&&synth&&fluid_synth_get_active_voice_count(synth)>0)std::this_thread::sleep_for(std::chrono::microseconds(100));
+ finished=1;
+}
+void CMidiPlayer::fileTimer1Pass()
+{
+ ftime=.0;ctempo=0x7A120;dpt=ctempo*1000/divs;
+ for(uint32_t eptr=0,ct=midiFile->getEvent(0)->time;eptr<midiFile->getEventCount();)
+ {
+ while(eptr<midiFile->getEventCount()&&ct==midiFile->getEvent(eptr)->time)
+ processEventStub(midiFile->getEvent(eptr++));
+ if(eptr>=midiFile->getEventCount())break;
+ ftime+=(midiFile->getEvent(eptr)->time-ct)*dpt/1e9;
+ ct=midiFile->getEvent(eptr)->time;
+ }
+}
+void CMidiPlayer::fileTimer2Pass()
+{
+ memset(stamps,0,sizeof(stamps));
+ double ctime=.0;uint32_t c=1;ctempo=0x7A120;dpt=ctempo*1000/divs;
+ for(uint32_t eptr=0,ct=midiFile->getEvent(0)->time;eptr<midiFile->getEventCount();)
+ {
+ while(eptr<midiFile->getEventCount()&&ct==midiFile->getEvent(eptr)->time)
+ processEventStub(midiFile->getEvent(eptr++));
+ if(eptr>=midiFile->getEventCount())break;
+ ctime+=(midiFile->getEvent(eptr)->time-ct)*dpt/1e9;
+ while(ctime>ftime*c/100.){stamps[c++]=eptr;if(c>100)throw;}
+ ct=midiFile->getEvent(eptr)->time;
+ }
+ while(c<101)stamps[c++]=midiFile->getEventCount();
+}
+CMidiPlayer::CMidiPlayer()
+{
+ midiFile=NULL;resumed=false;
+ settings=NULL;synth=NULL;adriver=NULL;
+}
+void CMidiPlayer::playerPanic()
+{
+ //for(int i=0;i<16;++i)fluid_synth_cc(synth,i,123,0);//not supported?
+ //fluid_synth_system_reset(synth);//reverts to default presets...
+ for(int i=0;i<16;++i)fluid_synth_all_notes_off(synth,i);
+ //for(int i=0;i<16;++i)for(int j=0;j<128;++j)fluid_synth_noteoff(synth,i,j);
+}
+void CMidiPlayer::playerLoadFile(const char* fn)
+{
+ midiFile=new CMidiFile(fn);
+ divs=midiFile->getDivision();
+ fileTimer1Pass();
+ fileTimer2Pass();
+}
+void CMidiPlayer::playerInit()
+{
+ ctempo=0x7A120;ctsn=4;ctsd=2;dpt=ctempo*1000/divs;
+ tceptr=0;tcstop=0;tcpaused=0;finished=0;
+ fluidInitialize("/media/Files/FluidR3_Ext.sf2");
+}
+void CMidiPlayer::playerDeinit()
+{
+ tceptr=0;tcstop=1;tcpaused=0;
+ fluidDeinitialize();
+}
+void CMidiPlayer::playerThread()
+{
+ playEvents();
+}
+uint32_t CMidiPlayer::getStamp(int id){return stamps[id];}
+uint32_t CMidiPlayer::getTCeptr(){return tceptr;}
+void CMidiPlayer::setTCeptr(uint32_t ep){tceptr=ep;}
+double CMidiPlayer::getFtime(){return ftime;}
+uint32_t CMidiPlayer::getTCpaused(){return tcpaused;}
+void CMidiPlayer::setTCpaused(uint32_t ps){tcpaused=ps;}
+uint32_t CMidiPlayer::isFinished(){return finished;}
+void CMidiPlayer::setResumed(){resumed=true;}
+void CMidiPlayer::setGain(double gain){if(settings)fluid_settings_setnum(settings,"synth.gain",gain);}
+int CMidiPlayer::getPolyphone(){return synth?fluid_synth_get_active_voice_count(synth):0;}
+int CMidiPlayer::getMaxPolyphone(){return synth?fluid_synth_get_polyphony(synth):0;}
+void CMidiPlayer::setMaxPolyphone(int p){if(synth)fluid_synth_set_polyphony(synth,p);}
diff --git a/qmpmidiplay.hpp b/qmpmidiplay.hpp
new file mode 100644
index 0000000..f32e215
--- /dev/null
+++ b/qmpmidiplay.hpp
@@ -0,0 +1,89 @@
+//sorry for the stupid C-like code...
+#ifndef QMPMIDIPLAY_H
+#define QMPMIDIPLAY_H
+#include <cstring>
+#include <cstdint>
+#include <cstdlib>
+#include <fluidsynth.h>
+struct SEvent
+{
+ uint32_t iid,time,p1,p2;
+ uint8_t type;
+ char *str;
+ SEvent(){time=p1=p2=0;type=0;str=NULL;}
+ SEvent(uint32_t _iid,uint32_t _t,char _tp,uint32_t _p1,uint32_t _p2,const char* s=NULL)
+ {
+ iid=_iid;time=_t;type=_tp;
+ p1=_p1;p2=_p2;
+ if(s){str=new char[strlen(s)+2];strcpy(str,s);}else str=NULL;
+ }
+};
+class CMidiFile
+{
+ private:
+ SEvent *eventList[10000000];
+ uint32_t eventc;
+ uint32_t fmt,trk,divs;
+ FILE *f;
+ int byteread;
+ uint32_t notes,curt,curid;
+
+ void error(int fatal,const char* format,...);
+ uint32_t readSW();
+ uint32_t readDW();
+ uint32_t readVL();
+ int eventReader();
+ void trackChunkReader();
+ void headerChunkReader();
+ void chunkReader(int hdrXp);
+ public:
+ CMidiFile(const char* fn);
+ ~CMidiFile();
+ const SEvent* getEvent(uint32_t id);
+ uint32_t getEventCount();
+ uint32_t getDivision();
+};
+class CMidiPlayer
+{
+ private:
+ CMidiFile *midiFile;
+ uint32_t stamps[101];
+ double ftime;
+ fluid_settings_t* settings;
+ fluid_synth_t* synth;
+ fluid_audio_driver_t* adriver;
+ uint32_t ctempo,ctsn,ctsd,dpt,divs;//delay_per_tick
+ //thread control
+ uint32_t tceptr,tcpaused,tcstop;
+ uint32_t finished,resumed;
+
+ void fluidInitialize(const char* sf);
+ void fluidDeinitialize();
+ void processEvent(const SEvent *e);
+ void processEventStub(const SEvent *e);
+ void playEvents();
+ void fileTimer1Pass();
+ void fileTimer2Pass();
+ public:
+ CMidiPlayer();
+ void playerLoadFile(const char* fn);
+ void playerInit();
+ void playerDeinit();
+ void playerThread();
+ void playerPanic();
+
+ uint32_t getStamp(int id);
+ uint32_t getTCeptr();
+ void setTCeptr(uint32_t ep);
+ uint32_t getTCpaused();
+ void setTCpaused(uint32_t ps);
+ double getFtime();
+ uint32_t isFinished();
+ void setResumed();
+
+ void setGain(double gain);
+ int getPolyphone();
+ int getMaxPolyphone();
+ void setMaxPolyphone(int p);
+};
+#endif
diff --git a/qmpmidiread.cpp b/qmpmidiread.cpp
new file mode 100644
index 0000000..dff91a1
--- /dev/null
+++ b/qmpmidiread.cpp
@@ -0,0 +1,217 @@
+//CLI Midi file player based on libfluidsynth
+//Midi file reading module
+//Written by Chris Xiong, 2015
+#include <cstdio>
+#include <cstring>
+#include <cstdlib>
+#include <cstdint>
+#include <cstdarg>
+#include <algorithm>
+#include "qmpmidiplay.hpp"
+bool cmp(SEvent *a,SEvent *b){return a->time-b->time?a->time<b->time:a->iid<b->iid;}
+void CMidiFile::error(int fatal,const char* format,...)
+{
+ va_list ap;
+ va_start(ap,format);vfprintf(stderr,format,ap);va_end(ap);
+ fprintf(stderr," at %#lx\n",ftell(f));
+ if(fatal)exit(2);
+}
+uint32_t CMidiFile::readSW()
+{
+ byteread+=2;
+ uint32_t ret=0;
+ for(int i=0;i<2;++i){ret<<=8;ret|=((uint32_t)fgetc(f))&0xFF;}
+ return ret;
+}
+uint32_t CMidiFile::readDW()
+{
+ byteread+=4;
+ uint32_t ret=0;
+ for(int i=0;i<4;++i){ret<<=8;ret|=((uint32_t)fgetc(f))&0xFF;}
+ return ret;
+}
+uint32_t CMidiFile::readVL()
+{
+ uint32_t ret=0,t,c=0;
+ do
+ {
+ t=fgetc(f);
+ if(++c>4)error(1,"E: Variable length type overflow.");
+ ret<<=7;ret|=(t&0x7F);
+ }while(t&0x80);
+ byteread+=c;
+ return ret;
+}
+int CMidiFile::eventReader()//returns 0 if End of Track encountered
+{
+ uint32_t delta=readVL();curt+=delta;
+ //printf("event@%#lx, delta %u: ",ftell(f),delta);
+ char type=fgetc(f);++byteread;uint32_t p1,p2;
+ static char lasttype;
+retry:
+ switch(type&0xF0)
+ {
+ case 0x80://Note Off
+ p1=fgetc(f);p2=fgetc(f);byteread+=2;
+ eventList[eventc++]=new SEvent(curid,curt,type,p1,p2);
+ //printf("Note off at ch#%d, note #%d, vel %d.\n",ch,p1,p2);
+ break;
+ case 0x90://Note On
+ p1=fgetc(f);p2=fgetc(f);byteread+=2;
+ if(p2)
+ {
+ ++notes;
+ eventList[eventc++]=new SEvent(curid,curt,type,p1,p2);
+ }
+ else
+ eventList[eventc++]=new SEvent(curid,curt,(type&0x0F)|0x80,p1,p2);
+ //printf("Note on at ch#%d, note #%d, vel %d.\n",ch,p1,p2);
+ break;
+ case 0xA0://Note Aftertouch
+ p1=fgetc(f);p2=fgetc(f);byteread+=2;
+ eventList[eventc++]=new SEvent(curid,curt,type,p1,p2);
+ //printf("Note aftertouch at ch#%d, note #%d, vel %d.\n",ch,p1,p2);
+ break;
+ case 0xB0://Controller Change
+ p1=fgetc(f);p2=fgetc(f);byteread+=2;
+ eventList[eventc++]=new SEvent(curid,curt,type,p1,p2);
+ //printf("Controller change at ch#%d, cc #%d, val %d.\n",ch,p1,p2);
+ break;
+ case 0xC0://Patch Change
+ p1=fgetc(f);++byteread;
+ eventList[eventc++]=new SEvent(curid,curt,type,p1,0);
+ //printf("Patch change at ch#%d, pc #%d.\n",ch,p1);
+ break;
+ case 0xD0://Channel Aftertouch
+ p1=fgetc(f);++byteread;
+ eventList[eventc++]=new SEvent(curid,curt,type,p1,0);
+ //printf("Channel aftertouch at ch#%d, vel #%d.\n",ch,p1);
+ break;
+ case 0xE0://Pitch wheel
+ p1=fgetc(f);p2=fgetc(f);byteread+=2;
+ eventList[eventc++]=new SEvent(curid,curt,type,(p1|(p2<<7))&0x3FFF,0);
+ //printf("Pitch wheel at ch#%d, val %u.\n",type&0x0F,(p1|(p2<<7))&0x3FFF);
+ break;
+ case 0xF0:
+ if((type&0x0F)==0x0F)//Meta Event
+ {
+ char metatype=fgetc(f);++byteread;
+ switch(metatype)
+ {
+ case 0x00://Sequence Number
+ fgetc(f);fgetc(f);fgetc(f);
+ byteread+=3;
+ //printf("seqence number.\n");
+ break;
+ case 0x20://Channel Prefix
+ fgetc(f);fgetc(f);byteread+=2;
+ //printf("channel prefix.\n");
+ break;
+ case 0x2F://End of Track
+ fgetc(f);++byteread;
+ //printf("end of track.\n");
+ return 0;
+ break;
+ case 0x51://Set Tempo
+ //fgetc(f);fgetc(f);fgetc(f);fgetc(f);
+ p1=readDW();p1&=0x00FFFFFF;
+ eventList[eventc++]=new SEvent(curid,curt,type,metatype,p1);
+ //byteread+=4;
+ break;
+ case 0x54://SMTPE offset, not handled.
+ fgetc(f);fgetc(f);fgetc(f);
+ fgetc(f);fgetc(f);fgetc(f);
+ byteread+=6;
+ break;
+ case 0x58://Time signature
+ fgetc(f);++byteread;
+ p1=readDW();
+ eventList[eventc++]=new SEvent(curid,curt,type,metatype,p1);
+ break;
+ case 0x59://Key signature
+ fgetc(f);++byteread;
+ p1=readSW();
+ eventList[eventc++]=new SEvent(curid,curt,type,metatype,p1);
+ break;
+ case 0x01:case 0x02:case 0x03:
+ case 0x04:case 0x05:case 0x06:
+ case 0x07:case 0x7F:default://text-like meta
+ {
+ uint32_t len=readVL(),c;char* str=NULL;
+ if(len<=1024&&len>0)str=new char[len+8];
+ for(c=0;c<len;++c)
+ {
+ ++byteread;if(str)str[c]=fgetc(f);else fgetc(f);
+ }
+ eventList[eventc++]=new SEvent(curid,curt,type,metatype,0,str);
+ if(len<=1024&&len>0)delete[] str;
+ }
+ }
+ }
+ else if((type&0x0F)==0x00||(type&0x0F)==0x07)//SysEx
+ {
+ uint32_t len=readVL();
+ while(len--){++byteread;fgetc(f);}
+ }
+ else error(0,"W: Unknown event type %#x",type);
+ break;
+ default:
+ fseek(f,-1,SEEK_CUR);--byteread;type=lasttype;goto retry;
+ }
+ lasttype=type;++curid;
+ return 1;
+}
+void CMidiFile::trackChunkReader()
+{
+ int chnklen=readDW();byteread=0;curt=0;curid=0;
+ while(/*byteread<chnklen&&*/eventReader());
+ if(byteread<chnklen)
+ {
+ error(0,"W: Extra bytes after EOT event.");
+ while(byteread<chnklen){fgetc(f);++byteread;}
+ }
+ /*if(byteread>chnklen)
+ {
+ error(1,"E: Read past end of track.");
+ }*/
+}
+void CMidiFile::headerChunkReader()
+{
+ int chnklen=readDW();byteread=0;
+ if(chnklen<6)error(1,"E: Header chunk too short.");
+ if(chnklen>6)error(0,"W: Header chunk length longer than expected. Ignoring extra bytes.");
+ fmt=readSW();trk=readSW();divs=readSW();
+ if(divs&0x8000)error(1,"E: SMTPE format is not supported.");
+ for(;byteread<chnklen;++byteread){fgetc(f);}
+}
+void CMidiFile::chunkReader(int hdrXp)
+{
+ char hdr[6];
+ if(!fgets(hdr,5,f))error(1,"E: Unexpected EOF.");
+ if(hdrXp)
+ if(strncmp(hdr,"MThd",4))error(1,"E: Wrong MIDI header.");
+ else headerChunkReader();
+ else
+ if(strncmp(hdr,"MTrk",4))
+ {
+ error(0,"W: Wrong track chunk header. Ignoring the whole chunk.");
+ for(int chnklen=readDW();chnklen>0;--chnklen)fgetc(f);
+ }
+ else trackChunkReader();
+}
+CMidiFile::CMidiFile(const char* fn)
+{
+ if(!(f=fopen(fn,"rb")))exit((printf("E: file %s doesn't exist!\n",fn),2));
+ chunkReader(1);
+ for(uint32_t i=0;i<trk;++i)chunkReader(0);
+ printf("%d note(s)\n",notes);
+ fclose(f);
+ std::sort(eventList,eventList+eventc,cmp);
+}
+CMidiFile::~CMidiFile()
+{
+ for(uint32_t i=0;i<eventc;++i)delete eventList[i];
+}
+const SEvent* CMidiFile::getEvent(uint32_t id){return id<eventc?eventList[id]:NULL;}
+uint32_t CMidiFile::getEventCount(){return eventc;}
+uint32_t CMidiFile::getDivision(){return divs;}
diff --git a/qmpplistwindow.cpp b/qmpplistwindow.cpp
new file mode 100644
index 0000000..65c01f8
--- /dev/null
+++ b/qmpplistwindow.cpp
@@ -0,0 +1,139 @@
+#include <cstdlib>
+#include <ctime>
+#include <QFileDialog>
+#include "qmpplistwindow.hpp"
+#include "ui_qmpplistwindow.h"
+#include "qmpmainwindow.hpp"
+
+qmpplistwindow::qmpplistwindow(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::qmpplistwindow)
+{
+ ui->setupUi(this);
+ connect(this,SIGNAL(dialogClosing()),parent,SLOT(dialogClosed()));
+ connect(this,SIGNAL(selectionChanging()),parent,SLOT(selectionChanged()));
+ repeat=0;shuffle=0;
+}
+
+qmpplistwindow::~qmpplistwindow()
+{
+ delete ui;
+}
+
+void qmpplistwindow::closeEvent(QCloseEvent *event)
+{
+ setVisible(false);
+ emit dialogClosing();
+ event->accept();
+}
+
+void qmpplistwindow::on_pbAdd_clicked()
+{
+ QStringList sl=QFileDialog::getOpenFileNames(this,"Add File","","Midi files (*.mid *.midi)");
+ for(int i=0;i<sl.size();++i)
+ {
+ ui->lwFiles->addItem(new QListWidgetItem(sl.at(i)));
+ }
+}
+
+void qmpplistwindow::on_pbAddFolder_clicked()
+{
+ QFileDialog::getExistingDirectory(this,"Add Folder");
+ //...
+}
+
+void qmpplistwindow::on_pbRemove_clicked()
+{
+ QList<QListWidgetItem*> sl=ui->lwFiles->selectedItems();
+ for(int i=0;i<sl.size();++i)
+ {
+ ui->lwFiles->removeItemWidget(sl.at(i));
+ delete sl.at(i);
+ }
+}
+
+void qmpplistwindow::on_pbClear_clicked()
+{
+ while(ui->lwFiles->count()>0)
+ {
+ QListWidgetItem *d=ui->lwFiles->item(0);
+ ui->lwFiles->removeItemWidget(d);
+ delete d;
+ }
+}
+
+void qmpplistwindow::on_pbRepeat_clicked()
+{
+ ++repeat;repeat%=3;
+ switch(repeat)
+ {
+ case 0:
+ ui->pbRepeat->setIcon(QIcon(":/img/repeat-non.png"));
+ ui->pbRepeat->setText("Repeat Off");
+ break;
+ case 1:
+ ui->pbRepeat->setIcon(QIcon(":/img/repeat-one.png"));
+ ui->pbRepeat->setText("Repeat One");
+ break;
+ case 2:
+ ui->pbRepeat->setIcon(QIcon(":/img/repeat-all.png"));
+ ui->pbRepeat->setText("Repeat All");
+ break;
+ }
+}
+
+void qmpplistwindow::on_pbShuffle_clicked()
+{
+ shuffle=1-shuffle;
+ switch(shuffle)
+ {
+ case 1:
+ ui->pbShuffle->setIcon(QIcon(":/img/shuffle.png"));
+ ui->pbShuffle->setText("Shuffle On");
+ break;
+ case 0:
+ default:
+ ui->pbShuffle->setIcon(QIcon(":/img/shuffle-off.png"));
+ ui->pbShuffle->setText("Shuffle Off");
+ break;
+ }
+}
+
+QString qmpplistwindow::getFirstItem()
+{
+ if(ui->lwFiles->count()==0)return QString();
+ int id=0;
+ if(shuffle)id=rand()%ui->lwFiles->count();
+ ui->lwFiles->setCurrentRow(id);
+ return ui->lwFiles->item(id)->text();
+}
+QString qmpplistwindow::getNextItem()
+{
+ if(ui->lwFiles->count()==0)return QString();
+ if(repeat==1)return ui->lwFiles->item(ui->lwFiles->currentRow())->text();
+ int id=ui->lwFiles->currentRow();++id;id%=ui->lwFiles->count();
+ if(shuffle)id=rand()%ui->lwFiles->count();
+ ui->lwFiles->setCurrentRow(id);
+ return ui->lwFiles->item(id)->text();
+}
+QString qmpplistwindow::getPrevItem()
+{
+ if(ui->lwFiles->count()==0)return QString();
+ if(repeat==1)return ui->lwFiles->item(ui->lwFiles->currentRow())->text();
+ int id=ui->lwFiles->currentRow();--id;
+ id<0?id+=ui->lwFiles->count():0;
+ if(shuffle)id=rand()%ui->lwFiles->count();
+ ui->lwFiles->setCurrentRow(id);
+ return ui->lwFiles->item(id)->text();
+}
+QString qmpplistwindow::getSelectedItem()
+{
+ if(ui->lwFiles->count()==0)return QString();
+ return ui->lwFiles->item(ui->lwFiles->currentRow())->text();
+}
+int qmpplistwindow::getRepeat(){return repeat;}
+
+void qmpplistwindow::on_lwFiles_itemDoubleClicked()
+{
+ emit selectionChanging();
+}
diff --git a/qmpplistwindow.hpp b/qmpplistwindow.hpp
new file mode 100644
index 0000000..3c2e712
--- /dev/null
+++ b/qmpplistwindow.hpp
@@ -0,0 +1,51 @@
+#ifndef QMPPLISTWINDOW_H
+#define QMPPLISTWINDOW_H
+
+#include <QDialog>
+#include <QCloseEvent>
+#include <QListWidgetItem>
+
+namespace Ui {
+ class qmpplistwindow;
+}
+
+class qmpplistwindow : public QDialog
+{
+ Q_OBJECT
+
+ public:
+ explicit qmpplistwindow(QWidget *parent=0);
+ ~qmpplistwindow();
+ void closeEvent(QCloseEvent *event);
+ int getRepeat();
+ QString getFirstItem();
+ QString getNextItem();
+ QString getPrevItem();
+ QString getSelectedItem();
+ //void loadPList(const char*);
+ //void savePList(const char*);
+ signals:
+ void dialogClosing();
+ void selectionChanging();
+
+ private slots:
+ void on_pbAdd_clicked();
+
+ void on_pbAddFolder_clicked();
+
+ void on_pbRemove_clicked();
+
+ void on_pbClear_clicked();
+
+ void on_pbRepeat_clicked();
+
+ void on_pbShuffle_clicked();
+
+ void on_lwFiles_itemDoubleClicked();
+
+ private:
+ Ui::qmpplistwindow *ui;
+ int shuffle,repeat;//rep 0=off 1=one 2=all
+};
+
+#endif // QMPPLISTWINDOW_H
diff --git a/qmpplistwindow.ui b/qmpplistwindow.ui
new file mode 100644
index 0000000..964cc41
--- /dev/null
+++ b/qmpplistwindow.ui
@@ -0,0 +1,260 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>qmpplistwindow</class>
+ <widget class="QDialog" name="qmpplistwindow">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>530</width>
+ <height>321</height>
+ </rect>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>530</width>
+ <height>321</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>530</width>
+ <height>321</height>
+ </size>
+ </property>
+ <property name="acceptDrops">
+ <bool>true</bool>
+ </property>
+ <property name="windowTitle">
+ <string>Playlist</string>
+ </property>
+ <widget class="QPushButton" name="pbAdd">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>280</y>
+ <width>121</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Add</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/add.png</normaloff>:/img/add.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbAddFolder">
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>280</y>
+ <width>121</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Add Folder</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/addfolder.png</normaloff>:/img/addfolder.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbRepeat">
+ <property name="geometry">
+ <rect>
+ <x>270</x>
+ <y>240</y>
+ <width>121</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Repeat Off</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/repeat-non.png</normaloff>:/img/repeat-non.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbShuffle">
+ <property name="geometry">
+ <rect>
+ <x>400</x>
+ <y>240</y>
+ <width>121</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Shuffle Off</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/shuffle-off.png</normaloff>:/img/shuffle-off.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbSave">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>240</y>
+ <width>121</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Save</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/save.png</normaloff>:/img/save.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbLoad">
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>240</y>
+ <width>121</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Load</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/load.png</normaloff>:/img/load.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbRemove">
+ <property name="geometry">
+ <rect>
+ <x>270</x>
+ <y>280</y>
+ <width>121</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Remove</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/remove.png</normaloff>:/img/remove.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pbClear">
+ <property name="geometry">
+ <rect>
+ <x>400</x>
+ <y>280</y>
+ <width>121</width>
+ <height>36</height>
+ </rect>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">text-align:left</string>
+ </property>
+ <property name="text">
+ <string>Clear</string>
+ </property>
+ <property name="icon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/clear.png</normaloff>:/img/clear.png</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QListWidget" name="lwFiles">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>10</y>
+ <width>511</width>
+ <height>221</height>
+ </rect>
+ </property>
+ <property name="dragEnabled">
+ <bool>true</bool>
+ </property>
+ <property name="dragDropMode">
+ <enum>QAbstractItemView::InternalMove</enum>
+ </property>
+ </widget>
+ </widget>
+ <resources>
+ <include location="resources.qrc"/>
+ </resources>
+ <connections/>
+</ui>
diff --git a/resources.qrc b/resources.qrc
new file mode 100644
index 0000000..1836375
--- /dev/null
+++ b/resources.qrc
@@ -0,0 +1,29 @@
+<RCC>
+ <qresource prefix="/">
+ <file>img/add.png</file>
+ <file>img/list.png</file>
+ <file>img/addfolder.png</file>
+ <file>img/channel.png</file>
+ <file>img/prev.png</file>
+ <file>img/qmidiplyr.png</file>
+ <file>img/remove.png</file>
+ <file>img/clear.png</file>
+ <file>img/down.png</file>
+ <file>img/effects.png</file>
+ <file>img/repeat-all.png</file>
+ <file>img/repeat-base.png</file>
+ <file>img/repeat-non.png</file>
+ <file>img/load.png</file>
+ <file>img/next.png</file>
+ <file>img/repeat-one.png</file>
+ <file>img/save.png</file>
+ <file>img/settings.png</file>
+ <file>img/pause.png</file>
+ <file>img/play.png</file>
+ <file>img/shuffle-off.png</file>
+ <file>img/shuffle.png</file>
+ <file>img/stop.png</file>
+ <file>img/up.png</file>
+ <file>img/visualization.png</file>
+ </qresource>
+</RCC>