summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE674
-rw-r--r--README.md128
-rw-r--r--android/app/src/main/AndroidManifest.xml10
-rw-r--r--android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.pngbin0 -> 3555 bytes
-rw-r--r--android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.pngbin0 -> 3555 bytes
-rw-r--r--android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.pngbin0 -> 2497 bytes
-rw-r--r--android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.pngbin0 -> 2497 bytes
-rw-r--r--android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.pngbin0 -> 4503 bytes
-rw-r--r--android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.pngbin0 -> 4503 bytes
-rw-r--r--android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.pngbin0 -> 6323 bytes
-rw-r--r--android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.pngbin0 -> 6323 bytes
-rw-r--r--android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.pngbin0 -> 8222 bytes
-rw-r--r--android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.pngbin0 -> 8222 bytes
-rw-r--r--android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml14
-rw-r--r--android/app/src/main/res/mipmap-hdpi/ic_launcher.pngbin544 -> 1737 bytes
-rw-r--r--android/app/src/main/res/mipmap-mdpi/ic_launcher.pngbin442 -> 1141 bytes
-rw-r--r--android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngbin721 -> 2251 bytes
-rw-r--r--android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngbin1031 -> 3280 bytes
-rw-r--r--android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngbin1443 -> 4049 bytes
-rw-r--r--android/app/src/main/res/values/colors.xml4
-rw-r--r--assets/icon/icon.pngbin0 -> 8637 bytes
-rw-r--r--assets/icon/icon.svg184
-rw-r--r--flutter_launcher_icons.yaml32
-rw-r--r--ios/Runner/Info.plist2
-rw-r--r--lib/arrows.dart57
-rw-r--r--lib/esense_connect_dialog.dart52
-rw-r--r--lib/level.dart250
-rw-r--r--lib/level_selection.dart208
-rw-r--r--lib/main.dart2
-rw-r--r--lib/models/arrow_direction.dart12
-rw-r--r--lib/models/input_direction.dart14
-rw-r--r--lib/models/note.dart10
-rw-r--r--lib/screens/game_over.dart (renamed from lib/game_over_stats.dart)10
-rw-r--r--lib/screens/level.dart285
-rw-r--r--lib/screens/level_selection.dart161
-rw-r--r--lib/utils/esense_input.dart188
-rw-r--r--lib/utils/simfile.dart (renamed from lib/simfile.dart)68
-rw-r--r--lib/widgets/arrow.dart18
-rw-r--r--lib/widgets/arrows.dart23
-rw-r--r--lib/widgets/connection_status_button.dart40
-rw-r--r--lib/widgets/esense_connect_dialog.dart64
-rw-r--r--lib/widgets/esense_not_connected_dialog.dart34
-rw-r--r--lib/widgets/level_info_chip.dart37
-rw-r--r--lib/widgets/level_list_entry.dart95
-rw-r--r--presentation/.gitattributes3
-rw-r--r--presentation/.gitignore9
-rw-r--r--presentation/.gitlab-ci.yml28
-rw-r--r--presentation/CHANGELOG.md18
-rw-r--r--presentation/LICENSE.txt23
-rw-r--r--presentation/README.md100
-rw-r--r--presentation/assets/esense.pngbin0 -> 95865 bytes
-rw-r--r--presentation/assets/kit/banner.jpgbin0 -> 96829 bytes
-rw-r--r--presentation/assets/kit/logo-de.svg43
-rw-r--r--presentation/assets/kit/logo-en.svg49
-rw-r--r--presentation/assets/screenshot-level-selection.pngbin0 -> 762220 bytes
-rw-r--r--presentation/assets/screenshot-level.pngbin0 -> 62632 bytes
-rw-r--r--presentation/assets/stepmania.pngbin0 -> 37293 bytes
-rw-r--r--presentation/fonts/Roboto/LICENSE.txt202
-rw-r--r--presentation/fonts/Roboto/Roboto-Black.ttfbin0 -> 168060 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-BlackItalic.ttfbin0 -> 174108 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-Bold.ttfbin0 -> 167336 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-BoldItalic.ttfbin0 -> 171508 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-Italic.ttfbin0 -> 170504 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-Light.ttfbin0 -> 167000 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-LightItalic.ttfbin0 -> 173172 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-Medium.ttfbin0 -> 168644 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-MediumItalic.ttfbin0 -> 173416 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-Regular.ttfbin0 -> 168260 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-Thin.ttfbin0 -> 168488 bytes
-rw-r--r--presentation/fonts/Roboto/Roboto-ThinItalic.ttfbin0 -> 172860 bytes
-rw-r--r--presentation/kit-slides.typ321
-rw-r--r--presentation/pixi.lock608
-rw-r--r--presentation/pixi.toml26
-rw-r--r--presentation/presentation.typ59
-rw-r--r--pubspec.lock88
-rw-r--r--pubspec.yaml4
76 files changed, 3636 insertions, 621 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://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 <https://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
+<https://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
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/README.md b/README.md
index 373a28e..84bc619 100644
--- a/README.md
+++ b/README.md
@@ -1,42 +1,122 @@
-# sense_the_rhythm
+<div align="center">
+<img src="assets/icon/icon.svg" width="300">
-A new Flutter project.
-
-## Getting Started
-
-This project is a starting point for a Flutter application.
-
-A few resources to get you started if this is your first Flutter project:
-
-- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
-- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
-
-For help getting started with Flutter development, view the
-[online documentation](https://docs.flutter.dev/), which offers tutorials,
-samples, guidance on mobile development, and a full API reference.
+# Sense the Rhythm
+> Rhythm game where you have to headbang in the right direction to hit the notes.
+[Source Code](https://source.orangerot.dev/university/sense_the_rhythm)
+</div>
## Idee
-Ihre Flutter App verwendet mindestens einen Earable Sensor
-erfolgreich auf kreative Art und Weise.
+Das Rhythmusspiel **Sense the Rhythm** ist eine Flutter-App für Android, bei dem
+der Nutzer durch Neigen des Kopfes im richtigen Moment Noten eines Liedes
+treffen muss, die ihm in Form von Pfeilen entgegenkommen.
+
+## Benutzung
+
+> Getestet auf einem Oneplus 6 mit Android 13
+
+Um die App nutzen zu können, werden Simfiles benötigt, welche Lieder, Bilder und
+Notendaten enthalten. Getestet wurde mit den Dateien, die man über 'Alle
+herunterladen' von dem [In the Groove Pack](https://drive.google.com/drive/folders/1sIhv4_STnyqXiauMx3BUco0m-a5VEpYy)
+bekommt. Die ZIP-Datei muss in einen Ordner auf dem Android-Gerät entpackt
+werden. Generell sind `Beginner Packs`, zum Beispiel von itgpacks.com, zu
+empfehlen, bei denen wenige Noten hintereinander und keine Noten parallel
+gespielt werden.
+
+Sobald sich ein Ordner mit Simfiles auf dem Gerät befindet, kann dieser über
+den `+`-Knopf ausgewählt werden, woraufhin die Level in der Levelauswahl zu
+sehen sind.
+
+Soll das ESense Earable als Eingabe genutzen werden (Pfeiltasten auf der Tastatur
+als Backup), muss das Bluetooth-Symbol oben rechts berührt werden. Daraufhin
+erscheint ein Dialog, in welchem der Name des linken Earbuds eingegeben wird. Der
+Name kann herausgefunden werden, indem der linken Earbud in den
+Bluetooth-Pairing-Modus gebracht und in den Bluetooth-Einstellungen des
+Betriebssystems nach den verfügbaren Geräten geschaut wird. Mehr Informationen
+gibt es in der offiziellen eSense-User-Documentation. Wurde der Name in den
+Dialog eingegeben, wird auf `Connect` gedrückt und gewartet bis der Text `connected`
+(nicht nur `connecting...`!) erscheint. Jetzt kann der Dialog mit `Close`
+geschlossen werden.
+
+In der Levelauswahl kann nun ein Level ausgewählt werden, worauf das Level
+startet. Hier kann das Level pausiert und verlassen werden. Um das Level
+abzuschließen müssen die Noten getroffen werden, indem das ESense in die
+richtige Richtung geneigt oder die richtige Pfeiltaste in die auf einer
+Tastatur gedrückt wird.
+
+Am Ende erscheint eine Statistik wie viele Noten getroffen und verfehlt wurden,
+sowie die Option das Level zu wiederholen oder zu verlassen.
## Code-Qualität
-Ihre Flutter App ist sauber strukturiert und hat eine saubere sowie
-einheitliche Formatierung
+Der Code ist in eine Ordnerstruktur gegliedert, welche aufgeteilt ist in
+`/models`, `/utils`, `/screens` und `/widgets`. Alle Imports sind durch absolute
+Pfade repräsentiert.
+
+Alle Dateien wurden einheitlich mit dem Code-Formatter des Dart-Language-Servers
+formatiert.
## Dokumentation
-Ihr Code ist dokumentiert
+Alle Methoden werden durch dart doc comments `///` beschrieben. Komplizierte
+Code-Stellen werden durch Kommentare erweitert. Diese `README` dient dem Nutzer
+als Dokumentation zur Nutzung der App.
## Technische Raffinesse
-Ihre Umsetzung ist nicht trivial (zum Beispiel verarbeiten Sie
-Sensordaten, Nutzen APIs etc.), Gesamtumfang > 400 Zeilen4 Punkte
+> Ihre Umsetzung ist nicht trivial (zum Beispiel verarbeiten Sie
+Sensordaten, Nutzen APIs etc.), Gesamtumfang > 400 Zeilen
+
+Für die Umsetzung der App wurde ein eigener Parser für
+[Simfiles](https://github.com/stepmania/stepmania/wiki/sm) geschrieben. Dieser
+kann Tags, wie Titel, BPM oder Dateinamen zu Banner und Musik einlesen. Außerdem
+werden die `Charts` mit sämtlichen Noten eingelesen. Diese Daten werden sowohl
+in den Levels, als auch in der Levelauswahl benutzt.
+
+Zum Laden des ITG Packs wird das `file-picker` Plugin benutzt und Berechtigungen
+im Manifest und zur Laufzeit gesetzt (für neue Android-Versionen ist dafür
+leider kompletter Speicherzugriff nötig). Damit der ausgewählte Ordner beim
+nächsten Starten der App bestehen bleibt, wird der Pfad mit dem Plugin
+`shared_preferences` persistent gespeichert.
+
+Die Musik wird mit dem `audioplayer` Plugin abgespielt. Außerdem werden die
+Zeitinformationen genutzt, um die Noten als Pfeile zu zeigen, welche sich
+basierend auf dem Fortschritt des Liedes bewegen. Die Daten des ESense und
+Tastatur werden in den Zeitabfragen genutzt, um zu prüfen, ob die Note getroffen
+oder verfehlt wurde und die entsprechende Nachricht anzuzeigen. Für die
+Nachricht wurde sich mit dem AnimationController befasst.
+
+Das `esense_flutter` Plugin wird direkt vom GitHub-Repo bezogen, damit es bei
+aktuellen Flutter-Versionen benutzt werden kann. Der ESense-Input wird als
+globaler Service implementiert, wodurch er in jedem Widget verfügbar ist, ohne
+dass man es jedem Widget übergeben müsste. Von dem ESense Earable werden Daten
+über die Verbindung, den Zustand des Knopfes und Gyroskop-Daten abgefragt. Über
+den Knopf lässt sich das Level pausieren und weiterspielen. Die Neigung des
+ESense wird über die Gyroskop-Daten berechnet, indem die Bewegungsänderungen mit
+dem Standard-Skalierungsfaktor und der Delta-Zeit skaliert und für jede Messung
+mit der bisherigen Neigung verrechnet wird. Die Neigung wird bei jeder
+getroffenen Note neu kalibriert. Ob die Note getroffen wurde wird geprüft, indem
+getestet wird ob sich die Neigung in einem definierten Wertebereich befindet.
+
+Die Launcher-Icons und Launcher-Name wurden durch die Plugins
+`flutter_launcher_icons` und `flutter_app_name` automatisch für Größen und
+gewünschten Plattformen erstellt.
## Präsentation
-Qualität der 1-minütigen Präsentation am 9.1.2024
+
+Siehe `/presentation`
## Used Libraries
-- https://pub.dev/packages/esense_flutter
+- https://github.com/cph-cachet/flutter-plugins.git
+- https://pub.dev/packages/shared_preferences
+- https://pub.dev/packages/file_picker
+- https://pub.dev/packages/audioplayers
+- https://pub.dev/packages/permission_handler
+- https://pub.dev/packages/flutter_launcher_icons
+- https://pub.dev/packages/flutter_app_name
+
+## License
+
+This project is licensed under the GPL-3 License - see the `LICENSE` file for details
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 1499c1a..9ba7706 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,8 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The following permission is related to the eSense library -->
- <uses-permission
- android:name="android.permission.BLUETOOTH"
- android:maxSdkVersion="30" />
+
+<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
+<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
+<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission
android:name="android.permission.BLUETOOTH_ADMIN"
android:maxSdkVersion="30" />
@@ -13,7 +15,7 @@
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
<application
- android:label="sense_the_rhythm"
+ android:label="Sense the Rhythm"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
diff --git a/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..1f21ed5
--- /dev/null
+++ b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png b/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..1f21ed5
--- /dev/null
+++ b/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..e8097f5
--- /dev/null
+++ b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png b/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..e8097f5
--- /dev/null
+++ b/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..4a255a1
--- /dev/null
+++ b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png b/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..4a255a1
--- /dev/null
+++ b/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..9dc433d
--- /dev/null
+++ b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..9dc433d
--- /dev/null
+++ b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..c5f1b84
--- /dev/null
+++ b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
Binary files differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png
new file mode 100644
index 0000000..c5f1b84
--- /dev/null
+++ b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..d506366
--- /dev/null
+++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background"/>
+ <foreground>
+ <inset
+ android:drawable="@drawable/ic_launcher_foreground"
+ android:inset="16%" />
+ </foreground>
+ <monochrome>
+ <inset
+ android:drawable="@drawable/ic_launcher_monochrome"
+ android:inset="16%" />
+ </monochrome>
+</adaptive-icon>
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
index db77bb4..ccf987a 100644
--- a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
+++ b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
index 17987b7..c2dc3c9 100644
--- a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
+++ b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index 09d4391..7f16f43 100644
--- a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
+++ b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index d5f1c8d..6ef798c 100644
--- a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
+++ b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 4d6372e..effd3d2 100644
--- a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
+++ b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..ab98328
--- /dev/null
+++ b/android/app/src/main/res/values/colors.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="ic_launcher_background">#ffffff</color>
+</resources> \ No newline at end of file
diff --git a/assets/icon/icon.png b/assets/icon/icon.png
new file mode 100644
index 0000000..99bf445
--- /dev/null
+++ b/assets/icon/icon.png
Binary files differ
diff --git a/assets/icon/icon.svg b/assets/icon/icon.svg
new file mode 100644
index 0000000..0f1d59b
--- /dev/null
+++ b/assets/icon/icon.svg
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ width="512"
+ height="512"
+ viewBox="0 0 512 512"
+ version="1.1"
+ id="svg11"
+ sodipodi:docname="icon.svg"
+ xml:space="preserve"
+ inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
+ inkscape:export-filename="icon.png"
+ inkscape:export-xdpi="96"
+ inkscape:export-ydpi="96"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg"><style
+ id="style1"><![CDATA[
+#keylines circle, #keylines rect {
+ vector-effect: non-scaling-stroke;
+ fill: none;
+ stroke: #0000FF;
+}
+#mask path, #mask rect, #mask circle, #hatching path {
+ vector-effect: non-scaling-stroke;
+ fill: none;
+ stroke: #FF0000;
+}
+#keylines, #mask {
+ opacity: 0.5;
+}
+]]></style><inkscape:_templateinfo><inkscape:_name>Android O icon template</inkscape:_name><inkscape:author>Venceslas DUET</inkscape:author><inkscape:_shortdesc>A collection of keylines and guides used to make adaptive icons for android O</inkscape:_shortdesc><inkscape:date>2021-02-14</inkscape:date><inkscape:_keywords>Android Icon Adaptive Keylines</inkscape:_keywords></inkscape:_templateinfo><defs
+ id="defs1"><clipPath
+ clipPathUnits="userSpaceOnUse"
+ id="clipHatching"><rect
+ width="8"
+ height="8"
+ x="0"
+ y="0"
+ id="rect1" /></clipPath><pattern
+ patternUnits="userSpaceOnUse"
+ width="8"
+ height="8"
+ id="hatching"><path
+ d="M 1,-1 -1,1 M 9,7 7,9 M 9,-1 -1,9"
+ clip-path="url(#clipHatching)"
+ id="path1" /></pattern></defs><sodipodi:namedview
+ id="base"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ units="px"
+ showguides="true"
+ inkscape:guide-bbox="true"
+ inkscape:document-units="px"
+ inkscape:cx="248.01061"
+ inkscape:cy="240.34483"
+ pagecolor="#ffffff"
+ bordercolor="#999999"
+ borderopacity="1"
+ inkscape:showpageshadow="2"
+ inkscape:pageopacity="0"
+ inkscape:pagecheckerboard="0"
+ inkscape:deskcolor="#d1d1d1"
+ inkscape:zoom="1.1088235"
+ inkscape:window-width="1366"
+ inkscape:window-height="768"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="0"><inkscape:grid
+ type="xygrid"
+ empspacing="8"
+ id="grid1"
+ originx="0"
+ originy="0"
+ spacingy="1"
+ spacingx="1"
+ units="px" /><sodipodi:guide
+ position="256,256"
+ orientation="0,1"
+ inkscape:locked="false"
+ id="guide1" /><sodipodi:guide
+ position="256,200"
+ orientation="0,1"
+ inkscape:locked="false"
+ id="guide2" /><sodipodi:guide
+ position="256,312"
+ orientation="0,1"
+ inkscape:locked="false"
+ id="guide3" /><sodipodi:guide
+ position="256,256"
+ orientation="1,0"
+ inkscape:locked="false"
+ id="guide4" /><sodipodi:guide
+ position="200,256"
+ orientation="1,0"
+ inkscape:locked="false"
+ id="guide5" /><sodipodi:guide
+ position="312,256"
+ orientation="1,0"
+ inkscape:locked="false"
+ id="guide6" /><sodipodi:guide
+ position="256,256"
+ orientation="1,1"
+ inkscape:locked="false"
+ id="guide7" /><sodipodi:guide
+ position="256,256"
+ orientation="1,-1"
+ inkscape:locked="false"
+ id="guide8" /></sodipodi:namedview><g
+ inkscape:label="Calque 1"
+ inkscape:groupmode="layer"
+ id="layer1"><g
+ id="g11"
+ transform="matrix(14.708333,0,0,14.708333,45.912504,63.000008)"><rect
+ fill="none"
+ height="24"
+ width="24"
+ id="rect1-5"
+ style="fill:none;fill-opacity:1"
+ x="0"
+ y="0" /><g
+ id="g4"
+ style="display:none"><path
+ d="M 23,5.5 V 20 c 0,2.2 -1.8,4 -4,4 H 11.7 C 10.62,24 9.6,23.57 8.85,22.81 L 1,14.83 c 0,0 1.26,-1.23 1.3,-1.25 0.22,-0.19 0.49,-0.29 0.79,-0.29 0.22,0 0.42,0.06 0.6,0.16 C 3.73,13.46 8,15.91 8,15.91 V 4 C 8,3.17 8.67,2.5 9.5,2.5 10.33,2.5 11,3.17 11,4 v 7 h 9 V 5.5 C 20,4.67 20.67,4 21.5,4 22.33,4 23,4.67 23,5.5 Z"
+ id="path1-3"
+ style="fill:#000000;fill-opacity:1"
+ sodipodi:nodetypes="sssscccsccsssccsss" /><path
+ id="path1-6-5"
+ style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.8402;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
+ d="m 17.632533,10.172572 c -0.83,0 -1.5,0.67 -1.5,1.500001 v 1.267969 2.43164 1.267969 c 0,0.83 0.67,1.5 1.5,1.5 0.83,0 1.5,-0.67 1.5,-1.5 v -1.267969 -2.43164 -1.267969 c 0,-0.830001 -0.67,-1.500001 -1.5,-1.500001 z m -4.219019,10e-7 c -0.83,0 -1.5,0.67 -1.5,1.5 v 1.267969 2.43164 1.267969 c 0,0.83 0.67,1.5 1.5,1.5 0.83,0 1.5,-0.67 1.5,-1.5 v -1.267969 -2.43164 -1.267969 c 0,-0.83 -0.67,-1.5 -1.5,-1.5 z" /></g><g
+ id="g4-3"><path
+ id="path1-6"
+ style="fill:#000000;fill-opacity:1"
+ d="m 9.5003906,2.4996094 c -0.83,0 -1.5,0.67 -1.5,1.5 V 15.910547 c 0,0 -4.2701562,-2.450938 -4.3101562,-2.460938 -0.18,-0.1 -0.38,-0.159375 -0.6,-0.159375 -0.3,0 -0.5698438,0.09945 -0.7898438,0.289453 -0.04,0.02 -1.30078123,1.250391 -1.30078123,1.250391 L 8.85,22.810547 C 9.6,23.570547 10.62,24 11.7,24 h 7.299609 c 2.2,0 4.000782,-1.799609 4.000782,-3.999609 V 5.4996094 c 0,-0.83 -0.67,-1.5 -1.5,-1.5 -0.83,0 -1.5,0.67 -1.5,1.5 v 5.5007816 h -0.04453 C 19.660922,9.9965218 18.725724,9.2519531 17.633203,9.2519531 c -0.900046,0 -1.693894,0.5053002 -2.110547,1.2445309 -0.416731,-0.73895 -1.208366,-1.2445309 -2.108203,-1.2445309 -1.092521,0 -2.028891,0.744569 -2.323828,1.7484379 h -0.09023 V 3.9996094 c 0,-0.83 -0.67,-1.5 -1.5000004,-1.5 z m 3.9128904,7.6734376 c 0.83,0 1.5,0.67 1.5,1.5 v 1.267969 2.43164 1.267969 c 0,0.83 -0.67,1.5 -1.5,1.5 -0.83,0 -1.5,-0.67 -1.5,-1.5 v -1.267969 -2.43164 -1.267969 c 0,-0.83 0.67,-1.5 1.5,-1.5 z m 4.21875,0 c 0.83,0 1.5,0.669999 1.5,1.5 v 1.267969 2.43164 1.267969 c 0,0.83 -0.67,1.5 -1.5,1.5 -0.83,0 -1.5,-0.67 -1.5,-1.5 v -1.267969 -2.43164 -1.267969 c 0,-0.830001 0.67,-1.5 1.5,-1.5 z" /></g></g></g><g
+ inkscape:label="Keylines"
+ inkscape:groupmode="layer"
+ id="keylines"
+ sodipodi:insensitive="true"
+ style="display:none"><circle
+ cx="256"
+ cy="256"
+ r="80"
+ id="circle8" /><circle
+ cx="256"
+ cy="256"
+ r="176"
+ id="circle9" /><rect
+ width="256"
+ height="352"
+ x="128"
+ y="80"
+ ry="24"
+ id="rect9" /><rect
+ width="352"
+ height="256"
+ x="80"
+ y="128"
+ ry="24"
+ id="rect10" /><rectn
+ width="304"
+ height="304"
+ x="104"
+ y="104"
+ ry="24" /></g><g
+ inkscape:label="Mask"
+ inkscape:groupmode="layer"
+ id="mask"
+ sodipodi:insensitive="true"
+ style="display:none"><path
+ d="M 0,0 V 512 H 512 V 0 Z M 64,64 H 448 V 448 H 64 Z"
+ style="fill:url(#hatching)"
+ id="path10" /><path
+ d="m 256,512 c 112.1778,0 174.5778,0 215.2889,-40.7111 C 512,430.5778 512,368.1778 512,256 512,143.8222 512,81.4222 471.2889,40.7111 430.5778,0 368.1778,0 256,0 143.8222,0 81.4222,0 40.7111,40.7111 0,81.4222 0,143.8222 0,256 0,368.1778 0,430.5778 40.7111,471.2889 81.4222,512 143.8222,512 256,512 Z"
+ id="path11" /><circle
+ cx="256"
+ cy="256"
+ r="256"
+ id="circle11" /><rect
+ width="512"
+ height="512"
+ x="0"
+ y="0"
+ ry="128"
+ id="rect11" /></g></svg>
diff --git a/flutter_launcher_icons.yaml b/flutter_launcher_icons.yaml
new file mode 100644
index 0000000..8e24aac
--- /dev/null
+++ b/flutter_launcher_icons.yaml
@@ -0,0 +1,32 @@
+# flutter pub run flutter_launcher_icons
+flutter_launcher_icons:
+ image_path: "assets/icon/icon.svg"
+
+ android: true
+ image_path_android: "assets/icon/icon.png"
+ min_sdk_android: 21 # android min sdk min:16, default 21
+ adaptive_icon_background: "#ffffff"
+ adaptive_icon_foreground: "assets/icon/icon.png"
+ adaptive_icon_monochrome: "assets/icon/icon.png"
+
+ ios: true
+ # image_path_ios: "assets/icon/icon.png"
+ remove_alpha_channel_ios: true
+ # image_path_ios_dark_transparent: "assets/icon/icon_dark.png"
+ # image_path_ios_tinted_grayscale: "assets/icon/icon_tinted.png"
+ # desaturate_tinted_to_grayscale_ios: true
+
+ web:
+ generate: false
+ image_path: "path/to/image.png"
+ background_color: "#hexcode"
+ theme_color: "#hexcode"
+
+ windows:
+ generate: false
+ image_path: "path/to/image.png"
+ icon_size: 48 # min:48, max:256, default: 48
+
+ macos:
+ generate: false
+ image_path: "path/to/image.png"
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index b2f9614..4ca0411 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
- <string>sense_the_rhythm</string>
+ <string>Sense the Rhythm</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
diff --git a/lib/arrows.dart b/lib/arrows.dart
deleted file mode 100644
index ff53e02..0000000
--- a/lib/arrows.dart
+++ /dev/null
@@ -1,57 +0,0 @@
-import 'package:flutter/material.dart';
-
-enum ArrowDirection {
- left(Icons.arrow_back),
- down(Icons.arrow_downward),
- up(Icons.arrow_upward),
- right(Icons.arrow_forward);
-
- const ArrowDirection(this.icon);
-
- final IconData icon;
-}
-
-class Note {
- final double time;
- final ArrowDirection direction;
- double position = 0;
- bool? wasHit;
-
- Note({required this.time, required this.direction});
-}
-
-class Arrows extends StatelessWidget {
- final List<Note> notes;
- final double position;
-
- const Arrows({super.key, required this.notes, required this.position});
-
- @override
- Widget build(BuildContext context) {
- return Stack(
- children: notes.map((note) {
- double position = note.position * 10000; // * 20 * MediaQuery.of(context).size.height;
-
- return Arrow(
- position: position,
- direction: note.direction,
- );
- }).toList());
- }
-}
-
-class Arrow extends StatelessWidget {
- final double position;
- final ArrowDirection direction;
-
- const Arrow({super.key, required this.position, required this.direction});
-
- @override
- Widget build(BuildContext context) {
- return Positioned(
- left: MediaQuery.of(context).size.width / 2 - 50, // Center the arrow
- bottom: position + 50,
- child: Icon(size: 100, color: Colors.redAccent.shade400, direction.icon),
- );
- }
-}
diff --git a/lib/esense_connect_dialog.dart b/lib/esense_connect_dialog.dart
deleted file mode 100644
index b598174..0000000
--- a/lib/esense_connect_dialog.dart
+++ /dev/null
@@ -1,52 +0,0 @@
-import 'package:flutter/material.dart';
-
-class ESenseConnectDialog extends StatefulWidget {
- final void Function(String) connect;
- final ValueNotifier<String> deviceStatus;
- const ESenseConnectDialog(
- {super.key, required this.deviceStatus, required this.connect});
-
- @override
- State<ESenseConnectDialog> createState() => _ESenseConnectDialogState();
-}
-
-class _ESenseConnectDialogState extends State<ESenseConnectDialog> {
- String eSenseDeviceName = '';
-
- @override
- Widget build(BuildContext context) {
- return AlertDialog(
- title: const Text('Connect to ESense'),
- content: Column(mainAxisSize: MainAxisSize.min, children: [
- TextField(
- onChanged: (input) {
- setState(() {
- eSenseDeviceName = input;
- });
- },
- decoration: InputDecoration(
- border: OutlineInputBorder(),
- hintText: 'eSense-xxxx',
- labelText: 'Device name',
- ),
- ),
- // Text(eSenseDeviceName),
- ValueListenableBuilder(
- valueListenable: widget.deviceStatus,
- builder: (BuildContext context, String value, Widget? child) {
- return Text(value);
- }),
- ]),
- actions: <Widget>[
- TextButton(
- onPressed: () => Navigator.pop(context, 'Cancel'),
- child: const Text('Discard'),
- ),
- TextButton(
- onPressed: () => widget.connect(eSenseDeviceName),
- child: const Text('Connect'),
- ),
- ],
- );
- }
-}
diff --git a/lib/level.dart b/lib/level.dart
deleted file mode 100644
index cc17efb..0000000
--- a/lib/level.dart
+++ /dev/null
@@ -1,250 +0,0 @@
-import 'dart:async';
-import 'dart:io';
-
-import 'package:flutter/material.dart';
-import 'package:audioplayers/audioplayers.dart';
-import 'package:flutter/services.dart';
-import 'package:sense_the_rhythm/arrows.dart';
-import 'package:sense_the_rhythm/game_over_stats.dart';
-import 'package:sense_the_rhythm/simfile.dart';
-
-class Level extends StatefulWidget {
- const Level({super.key, required this.stepmaniaFolderPath});
- final String stepmaniaFolderPath;
-
- @override
- State<Level> createState() => _LevelState();
-}
-
-class InputDirection {
- bool up = false;
- bool down = false;
- bool left = false;
- bool right = false;
-}
-
-class _LevelState extends State<Level> {
- final player = AudioPlayer();
- Simfile? simfile;
- bool _isPlaying = true;
- Duration? _duration;
- Duration? _position;
-
- StreamSubscription? _durationSubscription;
- StreamSubscription? _positionSubscription;
-
- final FocusNode _focusNode = FocusNode();
- InputDirection inputDirection = InputDirection();
-
- List<Note> notes = [];
-
- @override
- void setState(VoidCallback fn) {
- // Subscriptions only can be closed asynchronously,
- // therefore events can occur after widget has been disposed.
- if (mounted) {
- super.setState(fn);
- }
- }
-
- @override
- void initState() {
- super.initState();
- // Use initial values from player
- player.getDuration().then(
- (value) => setState(() {
- _duration = value;
- }),
- );
- player.getCurrentPosition().then(
- (value) => setState(() {
- _position = value;
- }),
- );
- _durationSubscription = player.onDurationChanged.listen((duration) {
- setState(() => _duration = duration);
- });
-
- _positionSubscription = player.onPositionChanged.listen(
- (p) => setState(() => _position = p),
- );
-
- player.onDurationChanged.listen((Duration d) {
- // print('Max duration: $d');
- setState(() => _duration = d);
- });
-
- player.onPlayerComplete.listen((void _) {
- Route route = MaterialPageRoute(
- builder: (context) => GameOverStats(
- simfile: simfile!,
- notes: notes,
- ));
- Navigator.pushReplacement(context, route);
- });
-
- player.onPositionChanged.listen((Duration p) {
- // print('Current position: $p');
- setState(() => _position = p);
- for (final note in notes) {
- note.position = note.time - p.inMilliseconds / 60000.0;
- if (note.wasHit != null) {
- continue;
- }
- if (note.position.abs() < 0.5 * 1.0 / 60.0) {
- bool keypressCorrect = false;
- switch (note.direction) {
- case ArrowDirection.up:
- keypressCorrect = inputDirection.up;
- break;
- case ArrowDirection.down:
- keypressCorrect = inputDirection.down;
- break;
- case ArrowDirection.right:
- keypressCorrect = inputDirection.right;
- break;
- case ArrowDirection.left:
- keypressCorrect = inputDirection.left;
- break;
- }
- if (keypressCorrect) {
- print("you hit!");
- note.wasHit = true;
-
- ScaffoldMessenger.of(context).showSnackBar(
- SnackBar(
- content: Text('Great!'),
- duration: Duration(milliseconds: 500),
- ),
- );
- }
- } else if (note.position < -0.5 * 1.0 / 60.0) {
- print("Missed");
- note.wasHit = false;
- ScaffoldMessenger.of(context).showSnackBar(
- SnackBar(
- content: Text('Missed!'),
- duration: Duration(milliseconds: 500),
- ),
- );
- }
- }
- });
-
- simfile = Simfile(widget.stepmaniaFolderPath);
- simfile!.load();
-
- simfile!.chartSimplest!.beats.forEach((time, noteData) {
- int arrowIndex = noteData.indexOf('1');
- if (arrowIndex < 0 || arrowIndex > 3) {
- return;
- }
- notes.add(Note(time: time, direction: ArrowDirection.values[arrowIndex]));
- });
-
- player.play(DeviceFileSource(simfile!.audioPath!));
- }
-
- @override
- Widget build(BuildContext context) {
- return KeyboardListener(
- focusNode: _focusNode,
- autofocus: true,
- onKeyEvent: (event) {
- bool isDown = false;
- if (event is KeyDownEvent) {
- isDown = true;
- } else if (event is KeyUpEvent) {
- isDown = false;
- } else {
- return;
- }
- switch (event.logicalKey) {
- case LogicalKeyboardKey.arrowUp:
- inputDirection.up = isDown;
- break;
- case LogicalKeyboardKey.arrowDown:
- inputDirection.down = isDown;
- break;
- case LogicalKeyboardKey.arrowLeft:
- inputDirection.left = isDown;
- break;
- case LogicalKeyboardKey.arrowRight:
- inputDirection.right = isDown;
- break;
- }
- },
- child: Scaffold(
- appBar: AppBar(
- leading: IconButton(
- icon: Icon(_isPlaying ? Icons.pause : Icons.play_arrow),
- onPressed: () {
- if (_isPlaying) {
- player.pause();
- setState(() {
- _isPlaying = false;
- });
- } else {
- player.resume();
- setState(() {
- _isPlaying = true;
- });
- }
- },
- ),
- title: Text(widget.stepmaniaFolderPath.split('/').last),
- actions: [
- IconButton(
- icon: Icon(Icons.close),
- onPressed: () => Navigator.pop(context))
- ],
- bottom: PreferredSize(
- preferredSize: Size(double.infinity, 1.0),
- child: LinearProgressIndicator(
- value: (_duration != null &&
- _position != null &&
- _position!.inMilliseconds > 0 &&
- _position!.inMilliseconds < _duration!.inMilliseconds)
- ? _position!.inMilliseconds / _duration!.inMilliseconds
- : 0.0,
- )),
- ),
- body: Stack(children: [
- Arrows(
- notes: notes,
- position: _position != null
- ? _position!.inMilliseconds.toDouble()
- : 0.0),
- Positioned(
- top: 50,
- width: MediaQuery.of(context).size.width,
- left: 0,
- child: Text(
- "Great!",
- textScaler: TextScaler.linear(4),
- textAlign: TextAlign.center,
- ),
- ),
- Positioned(
- left: MediaQuery.of(context).size.width / 2 - 50,
- bottom: 50,
- child: Container(
- width: 100,
- height: 100,
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- border: Border.all(color: Colors.black, width: 10)),
- ),
- ),
- ])),
- );
- }
-
- @override
- void dispose() {
- _durationSubscription?.cancel();
- _positionSubscription?.cancel();
- player.dispose();
- super.dispose();
- }
-}
diff --git a/lib/level_selection.dart b/lib/level_selection.dart
deleted file mode 100644
index 5359d66..0000000
--- a/lib/level_selection.dart
+++ /dev/null
@@ -1,208 +0,0 @@
-import 'dart:io';
-
-import 'package:esense_flutter/esense.dart';
-import 'package:file_picker/file_picker.dart';
-import 'package:flutter/material.dart';
-import 'package:permission_handler/permission_handler.dart';
-import 'package:sense_the_rhythm/esense_connect_dialog.dart';
-import 'package:shared_preferences/shared_preferences.dart';
-
-import 'level.dart';
-
-class LevelSelection extends StatefulWidget {
- const LevelSelection({super.key});
-
- @override
- State<LevelSelection> createState() => _LevelSelectionState();
-}
-
-class _LevelSelectionState extends State<LevelSelection> {
- String? stepmaniaCoursesPath;
- List<FileSystemEntity> stepmaniaCoursesFolders = [];
-
- String eSenseDeviceName = '';
- ESenseManager? eSenseManager;
- ValueNotifier<String> _deviceStatus = ValueNotifier('');
- // String _deviceStatus = '';
- bool connected = false;
- bool sampling = false;
-
- @override
- void initState() {
- super.initState();
- _listenToESense();
- loadFolderPath();
- }
-
- Future<void> _askForPermissions() async {
- if (!(await Permission.bluetoothScan.request().isGranted &&
- await Permission.bluetoothConnect.request().isGranted)) {
- print(
- 'WARNING - no permission to use Bluetooth granted. Cannot access eSense device.');
- }
- // for some strange reason, Android requires permission to location for Bluetooth to work.....?
- if (Platform.isAndroid) {
- if (!(await Permission.locationWhenInUse.request().isGranted)) {
- print(
- 'WARNING - no permission to access location granted. Cannot access eSense device.');
- }
- }
- }
-
- Future<void> _listenToESense() async {
- await _askForPermissions();
-
- // if you want to get the connection events when connecting,
- // set up the listener BEFORE connecting...
- eSenseManager!.connectionEvents.listen((event) {
- print('CONNECTION event: $event');
-
- // when we're connected to the eSense device, we can start listening to events from it
- // if (event.type == ConnectionType.connected) _listenToESenseEvents();
-
- setState(() {
- connected = false;
- switch (event.type) {
- case ConnectionType.connected:
- _deviceStatus.value = 'connected';
- connected = true;
- break;
- case ConnectionType.unknown:
- _deviceStatus.value = 'unknown';
- break;
- case ConnectionType.disconnected:
- _deviceStatus.value = 'disconnected';
- sampling = false;
- break;
- case ConnectionType.device_found:
- _deviceStatus.value = 'device_found';
- break;
- case ConnectionType.device_not_found:
- _deviceStatus.value = 'device_not_found';
- break;
- }
- });
- });
- }
-
- Future<void> _connectToESense(String deviceName) async {
- if (!connected) {
- await _askForPermissions();
- print('Trying to connect to eSense device...');
- setState(() {
- eSenseDeviceName = deviceName;
- });
- print(eSenseDeviceName);
- eSenseManager = ESenseManager(eSenseDeviceName);
- connected = await eSenseManager!.connect();
- print('success!');
-
- setState(() {
- _deviceStatus.value = connected ? 'connecting...' : 'connection failed';
- });
- }
- }
-
- Future<void> loadFolderPath() async {
- SharedPreferences prefs = await SharedPreferences.getInstance();
- final String? stepmaniaCoursesPathSetting =
- prefs.getString('stepmania_courses');
-
- if (stepmaniaCoursesPathSetting == null) return;
- List<FileSystemEntity> stepmaniaCoursesFoldersFuture = await listFilesAndFolders(stepmaniaCoursesPathSetting);
-
- setState(() {
- stepmaniaCoursesPath = stepmaniaCoursesPathSetting;
- stepmaniaCoursesFolders = stepmaniaCoursesFoldersFuture;
- });
- }
-
- Future<void> selectFolder() async {
- String? selectedFolder = await FilePicker.platform.getDirectoryPath();
-
- if (selectedFolder != null) {
- // Save the selected folder path
- SharedPreferences prefs = await SharedPreferences.getInstance();
- await prefs.setString('stepmania_courses', selectedFolder);
-
- loadFolderPath();
- }
- }
-
- Future<List<FileSystemEntity>> listFilesAndFolders(
- String directoryPath) async {
- final directory = Directory(directoryPath);
- try {
- // List all files and folders in the directory
- return directory
- .listSync()
- .where((entity) => FileSystemEntity.isDirectorySync(entity.path))
- .toList();
- } catch (e) {
- print("Error reading directory: $e");
- return [];
- }
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text('Sense the Rhythm'),
- actions: [
- IconButton(
- onPressed: () => showDialog(
- context: context,
- builder: (BuildContext context) {
- return ESenseConnectDialog(
- deviceStatus: _deviceStatus,
- connect: (String name) {
- _connectToESense(name);
- });
- },
- ),
- icon: const Icon(Icons.bluetooth))
- ],
- ),
- body: Builder(builder: (context) {
- if (stepmaniaCoursesPath == null) {
- return Text('Add a Directory with Stepmania Songs on \'+\'');
- } else if (stepmaniaCoursesFolders.isEmpty) {
- return Text(
- 'Folder empty. Add Stepmania Songs to Folder or select a different folder on \'+\'');
- } else {
- return ListView.separated(
- itemCount: stepmaniaCoursesFolders.length,
- separatorBuilder: (BuildContext context, int index) =>
- const Divider(),
- itemBuilder: (context, index) {
- String thumbnailPath = Directory(
- stepmaniaCoursesFolders[index].path)
- .listSync()
- .firstWhere(
- (file) => file.path.toLowerCase().endsWith('banner.png'),
- orElse: () => File(''))
- .path;
- return ListTile(
- leading: Image.file(File(thumbnailPath)),
- trailing: Icon(Icons.play_arrow),
- title:
- Text(stepmaniaCoursesFolders[index].path.split('/').last),
- subtitle: Text('3:45'),
- onTap: () => Navigator.push(
- context,
- MaterialPageRoute(
- builder: (BuildContext context) => Level(
- stepmaniaFolderPath:
- stepmaniaCoursesFolders[index].path,
- ))),
- );
- },
- );
- }
- }),
- floatingActionButton: FloatingActionButton(
- onPressed: () => {selectFolder()}, child: Icon(Icons.add)),
- );
- }
-}
diff --git a/lib/main.dart b/lib/main.dart
index eb01d44..85443bb 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
-import 'level_selection.dart';
+import 'package:sense_the_rhythm/screens/level_selection.dart';
void main() {
runApp(const MyApp());
diff --git a/lib/models/arrow_direction.dart b/lib/models/arrow_direction.dart
new file mode 100644
index 0000000..5f0298b
--- /dev/null
+++ b/lib/models/arrow_direction.dart
@@ -0,0 +1,12 @@
+import 'package:flutter/material.dart';
+
+enum ArrowDirection {
+ left(Icons.arrow_back),
+ down(Icons.arrow_downward),
+ up(Icons.arrow_upward),
+ right(Icons.arrow_forward);
+
+ const ArrowDirection(this.icon);
+
+ final IconData icon;
+}
diff --git a/lib/models/input_direction.dart b/lib/models/input_direction.dart
new file mode 100644
index 0000000..b15b880
--- /dev/null
+++ b/lib/models/input_direction.dart
@@ -0,0 +1,14 @@
+class InputDirection {
+ bool up = false;
+ bool down = false;
+ bool left = false;
+ bool right = false;
+
+ /// reset all directions to false
+ void reset() {
+ up = false;
+ down = false;
+ left = false;
+ right = false;
+ }
+}
diff --git a/lib/models/note.dart b/lib/models/note.dart
new file mode 100644
index 0000000..bcc6ac6
--- /dev/null
+++ b/lib/models/note.dart
@@ -0,0 +1,10 @@
+import 'package:sense_the_rhythm/models/arrow_direction.dart';
+
+class Note {
+ final double time;
+ final ArrowDirection direction;
+ double position = 0;
+ bool? wasHit;
+
+ Note({required this.time, required this.direction});
+}
diff --git a/lib/game_over_stats.dart b/lib/screens/game_over.dart
index a80617c..76ea2fb 100644
--- a/lib/game_over_stats.dart
+++ b/lib/screens/game_over.dart
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
-import 'package:sense_the_rhythm/arrows.dart';
-import 'package:sense_the_rhythm/level.dart';
-import 'package:sense_the_rhythm/simfile.dart';
+import 'package:sense_the_rhythm/models/note.dart';
+import 'package:sense_the_rhythm/utils/simfile.dart';
+import 'package:sense_the_rhythm/screens/level.dart';
class GameOverStats extends StatelessWidget {
const GameOverStats({super.key, required this.simfile, required this.notes});
@@ -50,8 +50,8 @@ class GameOverStats extends StatelessWidget {
]),
TextButton(
onPressed: () {
- Route route = MaterialPageRoute(
- builder: (context) => Level(stepmaniaFolderPath: simfile.directoryPath));
+ Route route =
+ MaterialPageRoute(builder: (context) => Level(simfile));
Navigator.pushReplacement(context, route);
},
child: Text('Retry'))
diff --git a/lib/screens/level.dart b/lib/screens/level.dart
new file mode 100644
index 0000000..000c43c
--- /dev/null
+++ b/lib/screens/level.dart
@@ -0,0 +1,285 @@
+import 'dart:async';
+
+import 'package:flutter/material.dart';
+import 'package:audioplayers/audioplayers.dart';
+import 'package:flutter/services.dart';
+import 'package:sense_the_rhythm/models/arrow_direction.dart';
+import 'package:sense_the_rhythm/models/input_direction.dart';
+import 'package:sense_the_rhythm/models/note.dart';
+import 'package:sense_the_rhythm/utils/esense_input.dart';
+import 'package:sense_the_rhythm/utils/simfile.dart';
+import 'package:sense_the_rhythm/widgets/arrows.dart';
+import 'package:sense_the_rhythm/screens/game_over.dart';
+
+class Level extends StatefulWidget {
+ const Level(this.simfile, {super.key});
+ final Simfile simfile;
+
+ @override
+ State<Level> createState() => _LevelState();
+}
+
+class _LevelState extends State<Level> with SingleTickerProviderStateMixin {
+ final _player = AudioPlayer();
+ bool _isPlaying = true;
+ Duration? _duration;
+ Duration? _position;
+
+ StreamSubscription? _durationSubscription;
+ StreamSubscription? _positionSubscription;
+ StreamSubscription? _buttonSubscription;
+
+ final FocusNode _focusNode = FocusNode();
+ final InputDirection _inputDirection = InputDirection();
+
+ String _hitOrMissMessage = 'Play!';
+
+ final List<Note> _notes = [];
+
+ late AnimationController _animationController;
+ late Animation<double> _animation;
+
+ @override
+ void setState(VoidCallback fn) {
+ // Subscriptions only can be closed asynchronously,
+ // therefore events can occur after widget has been disposed.
+ if (mounted) {
+ super.setState(fn);
+ }
+ }
+
+ @override
+ void initState() {
+ super.initState();
+ ESenseInput.instance.resetAngles();
+
+ _animationController = AnimationController(
+ vsync: this,
+ duration: Duration(seconds: 2),
+ );
+ _animation =
+ Tween<double>(begin: 1.0, end: 0.0).animate(_animationController);
+ _animationController.forward();
+
+ // Use initial values from player
+ _player.getDuration().then(
+ (value) => setState(() {
+ _duration = value;
+ }),
+ );
+ _player.getCurrentPosition().then(
+ (value) => setState(() {
+ _position = value;
+ }),
+ );
+
+ // listen for new values from player
+ _durationSubscription =
+ _player.onDurationChanged.listen((Duration duration) {
+ setState(() => _duration = duration);
+ });
+
+ _positionSubscription =
+ _player.onPositionChanged.listen((Duration position) {
+ setState(() => _position = position);
+ for (final note in _notes) {
+ _noteHitCheck(note, position);
+ }
+ });
+
+ // go to GameOverStats when level finishes
+ _player.onPlayerComplete.listen((void _) {
+ Route route = MaterialPageRoute(
+ builder: (context) => GameOverStats(
+ simfile: widget.simfile,
+ notes: _notes,
+ ));
+ Navigator.pushReplacement(context, route);
+ });
+
+ // listen for esense button and pause/resume
+ if (ESenseInput.instance.connected) {
+ _buttonSubscription = ESenseInput.instance.buttonEvents().listen((event) {
+ if (!event.pressed) {
+ _pauseResume();
+ }
+ });
+ }
+
+ // convert beats to notes
+ widget.simfile.chartSimplest?.beats.forEach((time, noteData) {
+ int arrowIndex = noteData.indexOf('1');
+ if (arrowIndex < 0 || arrowIndex > 3) {
+ return;
+ }
+ _notes.add(Note(time: time, direction: ArrowDirection.values[arrowIndex]));
+ });
+
+ _player.play(DeviceFileSource(widget.simfile.audioPath!));
+ }
+
+ @override
+ void dispose() {
+ _animationController.dispose();
+ _durationSubscription?.cancel();
+ _positionSubscription?.cancel();
+ _buttonSubscription?.cancel();
+ _player.dispose();
+ super.dispose();
+ }
+
+ /// toggle between pause and resume
+ void _pauseResume() {
+ if (_isPlaying) {
+ _player.pause();
+ setState(() {
+ _isPlaying = false;
+ });
+ } else {
+ _player.resume();
+ setState(() {
+ _isPlaying = true;
+ });
+ }
+ }
+
+ /// checks if the [note] is hit on [time] with the correct InputDirection
+ void _noteHitCheck(Note note, Duration time) {
+ note.position = note.time - time.inMilliseconds / 60000.0;
+ if (note.wasHit != null) {
+ return;
+ }
+
+ // you have +- half a second to hit
+ if (note.position.abs() < 0.5 * 1.0 / 60.0) {
+ // combine keyboard and esense input
+ InputDirection esenseDirection =
+ ESenseInput.instance.getInputDirection(note.direction);
+ _inputDirection.up |= esenseDirection.up;
+ _inputDirection.down |= esenseDirection.down;
+ _inputDirection.left |= esenseDirection.left;
+ _inputDirection.right |= esenseDirection.right;
+
+ // check if input matches arrow direction
+ bool keypressCorrect = false;
+ switch (note.direction) {
+ case ArrowDirection.up:
+ keypressCorrect = _inputDirection.up;
+ break;
+ case ArrowDirection.down:
+ keypressCorrect = _inputDirection.down;
+ break;
+ case ArrowDirection.right:
+ keypressCorrect = _inputDirection.right;
+ break;
+ case ArrowDirection.left:
+ keypressCorrect = _inputDirection.left;
+ break;
+ }
+ if (keypressCorrect) {
+ print("you hit!");
+ note.wasHit = true;
+ _animationController.reset();
+ _animationController.forward();
+ _inputDirection.reset();
+ setState(() {
+ _hitOrMissMessage = 'Great!';
+ });
+ }
+ } else if (note.position < -0.5 * 1.0 / 60.0) {
+ print("Missed");
+ note.wasHit = false;
+ _animationController.reset();
+ _animationController.forward();
+ _inputDirection.reset();
+ setState(() {
+ _hitOrMissMessage = 'Missed';
+ });
+ }
+ }
+
+ /// sets the InputDirection based on the arrow keys
+ void _keyboardHandler(event) {
+ bool isDown = false;
+ if (event is KeyDownEvent) {
+ isDown = true;
+ } else if (event is KeyUpEvent) {
+ isDown = false;
+ } else {
+ return;
+ }
+ switch (event.logicalKey) {
+ case LogicalKeyboardKey.arrowUp:
+ _inputDirection.up = isDown;
+ break;
+ case LogicalKeyboardKey.arrowDown:
+ _inputDirection.down = isDown;
+ break;
+ case LogicalKeyboardKey.arrowLeft:
+ _inputDirection.left = isDown;
+ break;
+ case LogicalKeyboardKey.arrowRight:
+ _inputDirection.right = isDown;
+ break;
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return KeyboardListener(
+ focusNode: _focusNode,
+ autofocus: true,
+ onKeyEvent: _keyboardHandler,
+ child: Scaffold(
+ appBar: AppBar(
+ leading: IconButton(
+ icon: Icon(_isPlaying ? Icons.pause : Icons.play_arrow),
+ onPressed: _pauseResume,
+ ),
+ title: Text(widget.simfile.tags['TITLE']!),
+ actions: [
+ IconButton(
+ icon: Icon(Icons.close),
+ onPressed: () => Navigator.pop(context))
+ ],
+ bottom: PreferredSize(
+ preferredSize: Size(double.infinity, 1.0),
+ child: LinearProgressIndicator(
+ value: (_duration != null &&
+ _position != null &&
+ _position!.inMilliseconds > 0 &&
+ _position!.inMilliseconds < _duration!.inMilliseconds)
+ ? _position!.inMilliseconds / _duration!.inMilliseconds
+ : 0.0,
+ )),
+ ),
+ body: Stack(children: [
+ Arrows(notes: _notes),
+ Positioned(
+ top: 50,
+ width: MediaQuery.of(context).size.width,
+ left: 0,
+ child: FadeTransition(
+ opacity: _animation,
+ child: Text(
+ _hitOrMissMessage,
+ textScaler: TextScaler.linear(4),
+ textAlign: TextAlign.center,
+ ),
+ ),
+ ),
+ Positioned(
+ left: MediaQuery.of(context).size.width / 2 - 50,
+ bottom: 50,
+ child: Container(
+ width: 100,
+ height: 100,
+ decoration: BoxDecoration(
+ shape: BoxShape.circle,
+ border: Border.all(color: Colors.black, width: 10)),
+ ),
+ ),
+ ])),
+ );
+ }
+}
diff --git a/lib/screens/level_selection.dart b/lib/screens/level_selection.dart
new file mode 100644
index 0000000..0987063
--- /dev/null
+++ b/lib/screens/level_selection.dart
@@ -0,0 +1,161 @@
+import 'dart:io';
+
+import 'package:flutter/material.dart';
+import 'package:permission_handler/permission_handler.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:file_picker/file_picker.dart';
+import 'package:sense_the_rhythm/utils/esense_input.dart';
+import 'package:sense_the_rhythm/utils/simfile.dart';
+import 'package:sense_the_rhythm/widgets/connection_status_button.dart';
+import 'package:sense_the_rhythm/widgets/level_list_entry.dart';
+
+class LevelSelection extends StatefulWidget {
+ const LevelSelection({super.key});
+
+ @override
+ State<LevelSelection> createState() => _LevelSelectionState();
+}
+
+class _LevelSelectionState extends State<LevelSelection> {
+ String? _stepmaniaCoursesPath;
+ List<Simfile> _stepmaniaCoursesFolders = [];
+ List<Simfile> _stepmaniaCoursesFoldersFiltered = [];
+
+ @override
+ void initState() {
+ super.initState();
+ _loadFolderPath();
+ }
+
+ /// gets folder path from persistent storage and updates state with loaded simfiles
+ Future<void> _loadFolderPath() async {
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ final String? stepmaniaCoursesPathSetting =
+ prefs.getString('stepmania_courses');
+
+ if (stepmaniaCoursesPathSetting == null) return;
+ List<Simfile> stepmaniaCoursesFoldersFuture =
+ await _listFilesAndFolders(stepmaniaCoursesPathSetting);
+
+ setState(() {
+ _stepmaniaCoursesPath = stepmaniaCoursesPathSetting;
+ _stepmaniaCoursesFolders = stepmaniaCoursesFoldersFuture;
+ _stepmaniaCoursesFoldersFiltered = stepmaniaCoursesFoldersFuture;
+ });
+ }
+
+ /// open folder selection dialog and save selected folder in persistent storage
+ Future<void> _selectFolder() async {
+ await Permission.manageExternalStorage.request();
+ String? selectedFolder = await FilePicker.platform.getDirectoryPath();
+
+ if (selectedFolder != null) {
+ // Save the selected folder path
+ SharedPreferences prefs = await SharedPreferences.getInstance();
+ await prefs.setString('stepmania_courses', selectedFolder);
+
+ _loadFolderPath();
+ }
+ }
+
+ /// load all simfiles from a [directoryPath]
+ Future<List<Simfile>> _listFilesAndFolders(String directoryPath) async {
+ final directory = Directory(directoryPath);
+ try {
+ // List all files and folders in the directory
+ List<Simfile> simfiles = directory
+ .listSync(recursive: true)
+ .where((entity) => entity.path.endsWith('.sm'))
+ .map((entity) => Simfile(entity.path))
+ .toList();
+
+ List<bool> successfullLoads =
+ await Future.wait(simfiles.map((simfile) => simfile.load()));
+ List<Simfile> simfilesFiltered = [];
+ for (int i = 0; i < simfiles.length; i++) {
+ if (successfullLoads[i]) {
+ simfilesFiltered.add(simfiles[i]);
+ }
+ }
+
+ simfilesFiltered
+ .sort((a, b) => a.tags['TITLE']!.compareTo(b.tags['TITLE']!));
+
+ return simfilesFiltered;
+ } catch (e) {
+ print("Error reading directory: $e");
+ return [];
+ }
+ }
+
+ /// filter stepmaniaCoursesFolders based on [input]
+ void _filterLevels(String input) {
+ setState(() {
+ _stepmaniaCoursesFoldersFiltered = _stepmaniaCoursesFolders
+ .where((simfile) => simfile.tags["TITLE"]!
+ .toLowerCase()
+ .contains(input.toLowerCase()))
+ .toList();
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text('Sense the Rhythm'),
+ actions: [
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 8.0),
+ child: ValueListenableBuilder(
+ valueListenable: ESenseInput.instance.deviceStatus,
+ builder:
+ (BuildContext context, String deviceStatus, Widget? child) {
+ return ConnectionStatusButton(deviceStatus);
+ },
+ ),
+ )
+ ],
+ ),
+ body: Builder(builder: (context) {
+ if (_stepmaniaCoursesPath == null) {
+ return Text('Add a Directory with Stepmania Songs on \'+\'');
+ } else if (_stepmaniaCoursesFolders.isEmpty) {
+ return Text(
+ 'Folder empty. Add Stepmania Songs to Folder or select a different folder on \'+\'');
+ } else {
+ return Column(
+ children: [
+ Padding(
+ padding:
+ const EdgeInsets.symmetric(horizontal: 16.0, vertical: 0.0),
+ child: TextField(
+ onChanged: _filterLevels,
+ decoration: InputDecoration(
+ // icon: Icon(Icons.search),
+ hintText: 'Search'),
+ ),
+ ),
+ Expanded(
+ child: ListView.separated(
+ itemCount: _stepmaniaCoursesFoldersFiltered.length,
+ separatorBuilder: (BuildContext context, int index) =>
+ const Divider(),
+ itemBuilder: (context, index) {
+ Simfile simfile = _stepmaniaCoursesFoldersFiltered[index];
+ return LevelListEntry(simfile: simfile);
+ },
+ ),
+ ),
+ ],
+ );
+ }
+ }),
+ floatingActionButton: FloatingActionButton(
+ onPressed: () {
+ _selectFolder();
+ },
+ child: Icon(Icons.add)),
+ );
+ }
+}
diff --git a/lib/utils/esense_input.dart b/lib/utils/esense_input.dart
new file mode 100644
index 0000000..08875d5
--- /dev/null
+++ b/lib/utils/esense_input.dart
@@ -0,0 +1,188 @@
+import 'dart:async';
+import 'dart:io';
+
+import 'package:esense_flutter/esense.dart';
+import 'package:flutter/material.dart';
+import 'package:permission_handler/permission_handler.dart';
+import 'package:sense_the_rhythm/models/arrow_direction.dart';
+import 'package:sense_the_rhythm/models/input_direction.dart';
+
+class ESenseInput {
+ // create singleton that is available on all widgets so it does not have to be
+ // carried down in the widget tree
+ static final instance = ESenseInput._();
+
+ ESenseManager eSenseManager = ESenseManager('unknown');
+ // valuenotifier allows widgets to rerender when the value changes
+ ValueNotifier<String> deviceStatus = ValueNotifier('Disconnected');
+ StreamSubscription? _subscription;
+
+ String eSenseDeviceName = '';
+ bool connected = false;
+
+ final int _sampleRate = 20;
+
+ final InputDirection _inputDirection = InputDirection();
+ int _x = 0;
+ int _y = 0;
+ int _z = 0;
+
+ ESenseInput._() {
+ _listenToESense();
+ }
+
+ /// ask and check if permissions are enabled and granted
+ Future<bool> _askForPermissions() async {
+ // is desktop
+ if (!Platform.isAndroid && !Platform.isIOS) return false;
+ // is bluetooth even enabled?
+ if (!await Permission.bluetooth.serviceStatus.isEnabled) {
+ deviceStatus.value = "Bluetooth is disabled!";
+ return false;
+ }
+ if (!(await Permission.bluetoothScan.request().isGranted &&
+ await Permission.bluetoothConnect.request().isGranted &&
+ await Permission.bluetooth.request().isGranted)) {
+ print(
+ 'WARNING - no permission to use Bluetooth granted. Cannot access eSense device.');
+ deviceStatus.value = "Insufficiant Permissions";
+ return false;
+ }
+ // for some strange reason, Android requires permission to location for Bluetooth to work.....?
+ if (Platform.isAndroid) {
+ if (!(await Permission.locationWhenInUse.request().isGranted)) {
+ print(
+ 'WARNING - no permission to access location granted. Cannot access eSense device.');
+ deviceStatus.value = "Insufficiant Permissions";
+ return false;
+ }
+ }
+ return true;
+ }
+
+ /// listen to connectionEvents and set deviceStatus
+ void _listenToESense() {
+ // if you want to get the connection events when connecting,
+ // set up the listener BEFORE connecting...
+ eSenseManager.connectionEvents.listen((event) {
+ print('CONNECTION event: $event');
+
+ // when we're connected to the eSense device, we can start listening to events from it
+ // if (event.type == ConnectionType.connected) _listenToESenseEvents();
+
+ connected = false;
+ switch (event.type) {
+ case ConnectionType.connected:
+ deviceStatus.value = 'Connected';
+ connected = true;
+ _startListenToSensorEvents();
+ break;
+ case ConnectionType.unknown:
+ deviceStatus.value = 'Unknown';
+ break;
+ case ConnectionType.disconnected:
+ deviceStatus.value = 'Disconnected';
+ _pauseListenToSensorEvents();
+ break;
+ case ConnectionType.device_found:
+ deviceStatus.value = 'Device_found';
+ break;
+ case ConnectionType.device_not_found:
+ deviceStatus.value = 'Device_not_found';
+ break;
+ }
+ });
+ }
+
+ /// get eSenseEvent stream only containung button events
+ Stream<ButtonEventChanged> buttonEvents() {
+ return eSenseManager.eSenseEvents
+ .where((event) => event.runtimeType == ButtonEventChanged)
+ .cast();
+ }
+
+ /// sets sampling rate and listens to sensorEvents
+ void _startListenToSensorEvents() async {
+ // // any changes to the sampling frequency must be done BEFORE listening to sensor events
+ print('setting sampling frequency...');
+ bool successs = await eSenseManager.setSamplingRate(_sampleRate);
+ if (successs) {
+ print('setSamplingRate success');
+ } else {
+ print('setSamplingRate fail');
+ }
+
+ // subscribe to sensor event from the eSense device
+ _subscription = eSenseManager.sensorEvents.listen((event) {
+ // print('SENSOR event: $event');
+ if (event.gyro != null) {
+ _parseGyroData(event.gyro!);
+ }
+ });
+ }
+
+ /// cancels the sensorEvents listening
+ void _pauseListenToSensorEvents() async {
+ _subscription?.cancel();
+ }
+
+ /// add up all new gyro [data] in the form of deg/s multiplied by scaling factor
+ /// to get real angles
+ void _parseGyroData(List<int> data) {
+ // Float value in deg/s = Gyro value / Gyro scale factor
+ // The default configuration is +- 500deg/s for the gyroscope.
+ _x = (_x + (15 * data[0] ~/ (500 * _sampleRate))) % 360;
+ _y = (_y + (15 * data[1] ~/ (500 * _sampleRate))) % 360;
+ _z = (_z + (15 * data[2] ~/ (500 * _sampleRate))) % 360;
+ print('$_x, $_y, $_z');
+ // print('${(z.toDouble() / 500.0 * (1.0 / sampleRate.toDouble())) * 7.5}');
+ // print('${z.toDouble() / 500.0 * (1.0 / 10.0)}');
+ }
+
+ /// nulls all angles and reset inputDirection
+ void resetAngles() {
+ _inputDirection.reset();
+ _x = 0;
+ _y = 0;
+ _z = 0;
+ }
+
+ /// get InputDirection by checking if angels are in defined ranges and
+ /// calibrating based on the [expect]ed direction from ArrowDirection
+ InputDirection getInputDirection(ArrowDirection expect) {
+ // check if angle is in range
+ _inputDirection.up = _z > 180 && _z < 340;
+ _inputDirection.down = _z > 20 && _z < 180;
+ _inputDirection.left = _y > 0 && _y < 180;
+ _inputDirection.right = _y > 180 && _y < 360;
+
+ // calibrate based on expected directoin from ArrowDirection
+ if (expect == ArrowDirection.up && _inputDirection.up ||
+ expect == ArrowDirection.down && _inputDirection.down) {
+ _y = 0;
+ }
+ if (expect == ArrowDirection.left && _inputDirection.left ||
+ expect == ArrowDirection.right && _inputDirection.right) {
+ _z = 0;
+ }
+
+ return _inputDirection;
+ }
+
+ /// connect to ESense with [deviceName] by first asking for permissions
+ Future<void> connectToESense(String deviceName) async {
+ if (!connected) {
+ bool permissionSuccessfull = await _askForPermissions();
+ if (!permissionSuccessfull) return;
+ print('Trying to connect to eSense device namend \'$deviceName\'');
+ eSenseDeviceName = deviceName;
+ eSenseManager.deviceName = deviceName;
+ bool connecting = await eSenseManager.connect();
+ print(
+ 'Trying to connect to eSense device namend \'${eSenseManager.deviceName}\'');
+
+ deviceStatus.value = connecting ? 'connecting...' : 'connection failed';
+ print(deviceStatus.value);
+ }
+ }
+}
diff --git a/lib/simfile.dart b/lib/utils/simfile.dart
index 764e3aa..71613a9 100644
--- a/lib/simfile.dart
+++ b/lib/utils/simfile.dart
@@ -1,6 +1,7 @@
-import 'dart:ffi';
import 'dart:io';
+import 'package:audioplayers/audioplayers.dart';
+
enum Difficulty { Beginner, Easy, Medium, Hard, Challenge, Edit }
// These are the standard note values:
@@ -37,12 +38,13 @@ class Chart {
}
class Simfile {
- String directoryPath;
- String? simfilePath;
+ String? directoryPath;
+ String simfilePath;
String? audioPath;
String? bannerPath;
String? lines;
+ Duration? duration;
// tags of simfile
Map<String, String> tags = {};
@@ -51,8 +53,9 @@ class Simfile {
Map<double, double> bpms = {};
double offset = 0;
- Simfile(this.directoryPath);
+ Simfile(this.simfilePath);
+ /// parses a chart tag with metadata [keys] and note data [value]
void _parseChart({required List<String> keys, required String value}) {
Chart chart = Chart();
chart.chartType = keys[1];
@@ -61,6 +64,7 @@ class Simfile {
chart.numericalMeter = int.parse(keys[4]);
chart.radarValues = keys[5];
+ // find simplest chart
if (chartSimplest == null ||
(chart.difficulty!.index <= chartSimplest!.difficulty!.index &&
chart.numericalMeter! <= chartSimplest!.numericalMeter!)) {
@@ -76,8 +80,10 @@ class Simfile {
measures.add(measure);
}
+ // for now only use the first bpm value
double bpm = bpms.entries.first.value;
+ // calculate timing for all notes based on offset, bpm and measure
for (final (measureIndex, measure) in measures.indexed) {
for (final (noteIndex, noteData) in measure.indexed) {
double beat = measureIndex * 4.0 +
@@ -93,10 +99,13 @@ class Simfile {
}
}
+ /// parse a tag based on a regex match [fieldData] and parsing the value based
+ /// on the key
void _parseTag(RegExpMatch fieldData) {
List<String> keys =
fieldData[1]!.split(':').map((key) => key.trim()).toList();
String value = fieldData[2]!;
+
if (keys[0] == "BPMS") {
for (final pairRaw in value.split(',')) {
List<String> pair = pairRaw.split('=');
@@ -120,26 +129,47 @@ class Simfile {
_parseChart(keys: keys, value: value);
}
- void load() {
- simfilePath = Directory(directoryPath)
- .listSync()
- .firstWhere((entity) => entity.path.endsWith('.sm'),
- orElse: () => File('')).path;
-
- audioPath = Directory(directoryPath)
- .listSync()
- .firstWhere((entity) => entity.path.endsWith('.ogg'),
- orElse: () => File(''))
- .path;
-
- lines = File(simfilePath!).readAsStringSync();
-
+ /// load the simfile
+ Future<bool> load() async {
+ directoryPath = File(simfilePath).parent.path;
+ lines = File(simfilePath).readAsStringSync();
+
+ // remove comments
RegExp commentsRegExp = RegExp(r'//.*$');
lines = lines?.replaceAll(commentsRegExp, '');
+ // find all tags
RegExp fieldDataRegExp = RegExp(r'#([^;]+):([^;]*);');
+ // parse all tags
for (final fieldData in fieldDataRegExp.allMatches(lines!)) {
- _parseTag(fieldData);
+ try {
+ _parseTag(fieldData);
+ } catch (err) {
+ return false;
+ }
}
+
+ // searching for audio and banned in the directory is more robust than using
+ // values from metadata as they are wrong more often
+ for (FileSystemEntity entity in Directory(directoryPath!).listSync()) {
+ if (entity.path.endsWith('.ogg')) {
+ audioPath = entity.path;
+ }
+ if (entity.path.endsWith('anner.png')) {
+ bannerPath = entity.path;
+ }
+ }
+
+ // dont use this simfile of files are missing
+ if (audioPath == null) return false;
+ if (bannerPath == null) return false;
+
+ // get duration from audio
+ AudioPlayer audioplayer = AudioPlayer();
+ await audioplayer.setSource(DeviceFileSource(audioPath!));
+ duration = await audioplayer.getDuration();
+ audioplayer.dispose();
+
+ return true;
}
}
diff --git a/lib/widgets/arrow.dart b/lib/widgets/arrow.dart
new file mode 100644
index 0000000..1ad0ec4
--- /dev/null
+++ b/lib/widgets/arrow.dart
@@ -0,0 +1,18 @@
+import 'package:flutter/material.dart';
+import 'package:sense_the_rhythm/models/arrow_direction.dart';
+
+class Arrow extends StatelessWidget {
+ final double position;
+ final ArrowDirection direction;
+
+ const Arrow({super.key, required this.position, required this.direction});
+
+ @override
+ Widget build(BuildContext context) {
+ return Positioned(
+ left: MediaQuery.of(context).size.width / 2 - 50, // Center the arrow
+ bottom: position + 50,
+ child: Icon(size: 100, color: Colors.redAccent.shade400, direction.icon),
+ );
+ }
+}
diff --git a/lib/widgets/arrows.dart b/lib/widgets/arrows.dart
new file mode 100644
index 0000000..162f0f3
--- /dev/null
+++ b/lib/widgets/arrows.dart
@@ -0,0 +1,23 @@
+import 'package:flutter/material.dart';
+import 'package:sense_the_rhythm/models/note.dart';
+import 'package:sense_the_rhythm/widgets/arrow.dart';
+
+class Arrows extends StatelessWidget {
+ final List<Note> notes;
+
+ const Arrows({super.key, required this.notes});
+
+ @override
+ Widget build(BuildContext context) {
+ return Stack(
+ children: notes.map((note) {
+ double position =
+ note.position * 10000; // * 20 * MediaQuery.of(context).size.height;
+
+ return Arrow(
+ position: position,
+ direction: note.direction,
+ );
+ }).toList());
+ }
+}
diff --git a/lib/widgets/connection_status_button.dart b/lib/widgets/connection_status_button.dart
new file mode 100644
index 0000000..e0c4cb4
--- /dev/null
+++ b/lib/widgets/connection_status_button.dart
@@ -0,0 +1,40 @@
+import 'package:flutter/material.dart';
+import 'package:sense_the_rhythm/utils/esense_input.dart';
+import 'package:sense_the_rhythm/widgets/esense_connect_dialog.dart';
+
+class ConnectionStatusButton extends StatelessWidget {
+ final String deviceStatus;
+ const ConnectionStatusButton(
+ this.deviceStatus, {
+ super.key,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return FilledButton.icon(
+ style: ButtonStyle(
+ backgroundColor: WidgetStateProperty.all(
+ ESenseInput.instance.connected ? Colors.green : Colors.grey),
+ padding:
+ WidgetStateProperty.all(EdgeInsets.symmetric(horizontal: 8.0))),
+ onPressed: () => showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return ESenseConnectDialog(
+ deviceStatus: ESenseInput.instance.deviceStatus,
+ connect: (String name) {
+ ESenseInput.instance.connectToESense(name);
+ },
+ disconnect: () {
+ ESenseInput.instance.eSenseManager.disconnect();
+ },
+ );
+ },
+ ),
+ label: Text(deviceStatus),
+ iconAlignment: IconAlignment.end,
+ icon: Icon(ESenseInput.instance.connected
+ ? Icons.bluetooth_connected
+ : Icons.bluetooth));
+ }
+}
diff --git a/lib/widgets/esense_connect_dialog.dart b/lib/widgets/esense_connect_dialog.dart
new file mode 100644
index 0000000..2853ffe
--- /dev/null
+++ b/lib/widgets/esense_connect_dialog.dart
@@ -0,0 +1,64 @@
+import 'package:flutter/material.dart';
+import 'package:sense_the_rhythm/utils/esense_input.dart';
+
+class ESenseConnectDialog extends StatefulWidget {
+ final void Function(String) connect;
+ final VoidCallback disconnect;
+ final ValueNotifier<String> deviceStatus;
+
+ const ESenseConnectDialog(
+ {super.key,
+ required this.deviceStatus,
+ required this.connect,
+ required this.disconnect});
+
+ @override
+ State<ESenseConnectDialog> createState() => _ESenseConnectDialogState();
+}
+
+class _ESenseConnectDialogState extends State<ESenseConnectDialog> {
+ String _eSenseDeviceName = '';
+
+ @override
+ Widget build(BuildContext context) {
+ // rerender whenever the deviceStatus changes
+ return ValueListenableBuilder(
+ valueListenable: widget.deviceStatus,
+ builder: (BuildContext context, String deviceStatus, Widget? child) {
+ return AlertDialog(
+ title: const Text('Connect to ESense'),
+ content: Column(mainAxisSize: MainAxisSize.min, children: [
+ TextField(
+ onChanged: (input) {
+ setState(() {
+ _eSenseDeviceName = input;
+ });
+ },
+ decoration: InputDecoration(
+ border: OutlineInputBorder(),
+ hintText: 'eSense-xxxx',
+ labelText: 'Device name',
+ ),
+ ),
+ // Text(eSenseDeviceName),
+ Text(deviceStatus)
+ ]),
+ actions: <Widget>[
+ TextButton(
+ onPressed: () => Navigator.pop(context, 'Cancel'),
+ child: const Text('Close'),
+ ),
+ ESenseInput.instance.connected
+ ? TextButton(
+ onPressed: () => widget.disconnect(),
+ child: const Text('Disconnect'),
+ )
+ : TextButton(
+ onPressed: () => widget.connect(_eSenseDeviceName),
+ child: const Text('Connect'),
+ ),
+ ],
+ );
+ });
+ }
+}
diff --git a/lib/widgets/esense_not_connected_dialog.dart b/lib/widgets/esense_not_connected_dialog.dart
new file mode 100644
index 0000000..32d1d6b
--- /dev/null
+++ b/lib/widgets/esense_not_connected_dialog.dart
@@ -0,0 +1,34 @@
+import 'package:flutter/material.dart';
+
+class ESenseNotConnectedDialog extends StatelessWidget {
+ const ESenseNotConnectedDialog(
+ {super.key, required this.onCancel, required this.onContinue});
+
+ final VoidCallback onCancel;
+ final VoidCallback onContinue;
+
+ @override
+ Widget build(BuildContext context) {
+ return AlertDialog(
+ title: const Text("ESense not connected"),
+ content: const Text(
+ "You will only be able to play with the arrow keys of an external keyboard. "),
+ actions: <Widget>[
+ TextButton(
+ onPressed: () {
+ Navigator.pop(context, 'Cancel');
+ onCancel();
+ },
+ child: const Text('Connect to ESense'),
+ ),
+ TextButton(
+ onPressed: () {
+ Navigator.pop(context, 'Cancel');
+ onContinue();
+ },
+ child: const Text('Continue anyway'),
+ ),
+ ],
+ );
+ }
+}
diff --git a/lib/widgets/level_info_chip.dart b/lib/widgets/level_info_chip.dart
new file mode 100644
index 0000000..8e4146c
--- /dev/null
+++ b/lib/widgets/level_info_chip.dart
@@ -0,0 +1,37 @@
+import 'package:flutter/material.dart';
+
+class LevelInfoChip extends StatelessWidget {
+ final String label;
+ final IconData icon;
+
+ const LevelInfoChip({super.key, required this.label, required this.icon});
+
+ @override
+ Widget build(BuildContext context) {
+ return OutlinedButton(
+ style: ButtonStyle(
+ shape: WidgetStateProperty.all(RoundedRectangleBorder(
+ borderRadius: BorderRadius.all(Radius.circular(5)))),
+ minimumSize: WidgetStateProperty.all(Size(10, 10)),
+ tapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ padding: WidgetStateProperty.all(
+ EdgeInsets.symmetric(vertical: 4.0, horizontal: 5.0))
+ ),
+ onPressed: () {},
+ child: Row(children: [
+ Icon(
+ icon,
+ size: 16,
+ ),
+ SizedBox(width: 4),
+ Text(
+ label,
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight:
+ FontWeight.w200), // Adjust font size for smaller appearance
+ ),
+ ]),
+ );
+ }
+}
diff --git a/lib/widgets/level_list_entry.dart b/lib/widgets/level_list_entry.dart
new file mode 100644
index 0000000..ad7766d
--- /dev/null
+++ b/lib/widgets/level_list_entry.dart
@@ -0,0 +1,95 @@
+import 'dart:io';
+
+import 'package:flutter/material.dart';
+import 'package:sense_the_rhythm/utils/esense_input.dart';
+import 'package:sense_the_rhythm/utils/simfile.dart';
+import 'package:sense_the_rhythm/screens/level.dart';
+import 'package:sense_the_rhythm/widgets/esense_connect_dialog.dart';
+import 'package:sense_the_rhythm/widgets/esense_not_connected_dialog.dart';
+import 'package:sense_the_rhythm/widgets/level_info_chip.dart';
+
+class LevelListEntry extends StatelessWidget {
+ const LevelListEntry({
+ super.key,
+ required this.simfile,
+ });
+
+ final Simfile simfile;
+
+ /// navigates to level screen
+ void _navigateToLevel(BuildContext context) {
+ Navigator.push(context,
+ MaterialPageRoute(builder: (BuildContext context) => Level(simfile)));
+ }
+
+ /// opens ESenseConnectDialog
+ void _openESenseConnectDialog(context) {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return ESenseConnectDialog(
+ deviceStatus: ESenseInput.instance.deviceStatus,
+ connect: (String name) {
+ ESenseInput.instance.connectToESense(name);
+ },
+ disconnect: () {
+ ESenseInput.instance.eSenseManager.disconnect();
+ },
+ );
+ },
+ );
+ }
+
+ /// when clocked on the level, warn if not connected to ESense
+ void _tapHandler(BuildContext context) {
+ if (ESenseInput.instance.connected) {
+ _navigateToLevel(context);
+ } else {
+ showDialog(
+ context: context,
+ builder: (BuildContext context) {
+ return ESenseNotConnectedDialog(
+ onCancel: () {
+ _openESenseConnectDialog(context);
+ },
+ onContinue: () {
+ _navigateToLevel(context);
+ },
+ );
+ },
+ );
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return ListTile(
+ leading: Image.file(File(simfile.bannerPath!)),
+ trailing: Icon(Icons.play_arrow),
+ title: Text(
+ simfile.tags["TITLE"]!,
+ style: TextStyle(fontWeight: FontWeight.bold),
+ ),
+ subtitle: Padding(
+ padding: const EdgeInsets.only(bottom: 2),
+ child: Row(
+ spacing: 2,
+ children: [
+ LevelInfoChip(
+ label:
+ '${simfile.duration!.inMinutes}:${simfile.duration!.inSeconds.remainder(60).toString().padLeft(2, "0")}',
+ icon: Icons.timer_outlined,
+ ),
+ LevelInfoChip(
+ label: '${simfile.bpms.entries.first.value.toInt()} BPM',
+ icon: Icons.graphic_eq,
+ ),
+ ],
+ ),
+ ),
+ onTap: () {
+ _tapHandler(context);
+ },
+ );
+ }
+}
diff --git a/presentation/.gitattributes b/presentation/.gitattributes
new file mode 100644
index 0000000..2214e4b
--- /dev/null
+++ b/presentation/.gitattributes
@@ -0,0 +1,3 @@
+# GitHub syntax highlighting
+pixi.lock linguist-language=YAML linguist-generated=true
+
diff --git a/presentation/.gitignore b/presentation/.gitignore
new file mode 100644
index 0000000..a6eaac8
--- /dev/null
+++ b/presentation/.gitignore
@@ -0,0 +1,9 @@
+# Proprietary license. Can't be redistributed
+fonts/Arial*
+# compiled output
+presentation.pdf
+# typst cache
+.cache/
+# pixi environments
+.pixi
+*.egg-info
diff --git a/presentation/.gitlab-ci.yml b/presentation/.gitlab-ci.yml
new file mode 100644
index 0000000..3da5f88
--- /dev/null
+++ b/presentation/.gitlab-ci.yml
@@ -0,0 +1,28 @@
+stages:
+ - lint
+ - build
+
+default:
+ cache:
+ - key:
+ files:
+ - pixi.lock
+ paths:
+ - .pixi/
+
+lint-job:
+ stage: lint
+ image: ghcr.io/prefix-dev/pixi:0.24.2
+ script:
+ - pixi run lint
+
+build-job:
+ stage: build
+ artifacts:
+ name: presentation
+ expose_as: presentation
+ paths:
+ - presentation.pdf
+ image: ghcr.io/prefix-dev/pixi:0.24.2
+ script:
+ - pixi run compile
diff --git a/presentation/CHANGELOG.md b/presentation/CHANGELOG.md
new file mode 100644
index 0000000..dbcab95
--- /dev/null
+++ b/presentation/CHANGELOG.md
@@ -0,0 +1,18 @@
+Changelog
+=========
+
+This file lists new additions and breaking changes. Consult it when updating your presentations to a newer version of the template.
+
+## 0.3.2
+* Added GitLab CI configuration
+* Added Changelog
+
+## 0.3.1
+* Fixed outdated information in README
+
+## 0.3.0
+* The `group-logo` argument of `kit-theme` now takes `content` instead of a file path. If you previously passed a path to an image file just wrap it in `image()`.
+* The `banner` argument of `title-slide` now takes `content` instead of a file path. If you previously passed a path to an image file just wrap it in `image()`.
+* Added pixi configuration for easier compiling and linting
+* Removed podman-compose configuration. Consider using pixi instead.
+* Internal rework. Update typst version to 0.11.1
diff --git a/presentation/LICENSE.txt b/presentation/LICENSE.txt
new file mode 100644
index 0000000..cf714cf
--- /dev/null
+++ b/presentation/LICENSE.txt
@@ -0,0 +1,23 @@
+The following license does not apply to files in the kit/ and fonts/Roboto/ directories.
+
+MIT License
+
+Copyright (c) 2023 Adrian Freund
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/presentation/README.md b/presentation/README.md
new file mode 100644
index 0000000..77d6ec2
--- /dev/null
+++ b/presentation/README.md
@@ -0,0 +1,100 @@
+# KIT Slides Theme for Typst
+
+A Karlsruhe Institute of Technology theme for typesetting slides in Typst.
+
+This theme uses [polylux](https://github.com/andreasKroepelin/polylux) for creating slides in Typst.
+You can find more information on available functions in the [polylux book](polylux.dev/book).
+
+The simplest way to use this template in the Typst web app is to first add this [read-only shared project](https://typst.app/project/rMlNud7c83Ybf0R2B9BBTt) to your account, then create a copy of it from your dashboard.
+
+
+## Usage
+
+Clone this repository, then use `presentation.typ` as a starting point for your presentation.
+
+The theme is imported and loaded using
+```typst
+#import "kit-slides.typ": *
+
+#show: kit-theme.with(
+ title: [The title of your presentation],
+ subtitle: [
+ The subtitle of your presentation \
+ Can contain two lines
+ ],
+ author: [Your name],
+ short-title: [A short title to display at the bottom of all slides. Default to your title],
+ group-logo: image("Path to the logo of your group"), // Optional
+ date: [The date of the presentation],
+ language: "de", // The language of the presentation. Supports "de" and "en".
+ institute: [Your institute],
+)
+```
+
+Next insert the title slide using
+```typst
+#title-slide(banner: image("Path to your banner image"))
+```
+
+Now you can add more slides using
+```typst
+#slide(title: [Your slide title])[
+ Your slide content
+]
+```
+
+
+## Compiling
+
+We recommend using [pixi](https://pixi.sh) as a task and environment manager. You can however also use a regular typst installation.
+
+### Using pixi
+
+```bash
+# compile once
+pixi run compile
+```
+
+```bash
+# watch for changes and recompile automatically
+pixi run watch
+```
+
+Pixi also allows you to easily run different linters.
+This template currently ships with `typos` to find typos and `typstyle` to format your typst code.
+```bash
+# run all linters
+pixi run lint
+```
+
+### Using a local typst installation
+
+```bash
+# compile once
+typst compile --font-path fonts/ thesis.typ
+```
+
+```bash
+# watch for changes and recompile automatically
+typst watch --font-path fonts/ thesis.typ
+```
+
+Make sure to not forget the `--font-path` argument as typst will otherwise silently use different fonts.
+
+
+## Fonts
+
+The KIT design guide requires using Arial (Windows) or Helvetica (MacOS) for office documents, including presentations. Because neither of those fonts is usually available on Linux machines this template ships with the free Roboto font to prevent typst from falling back to a serif font. Roboto is also approved by the KIT design guide, though only for web content, not office documents.
+If you use this template in an official capacity it is recommended to install a copy of Arial on your system.
+
+
+## Stability
+
+This theme is still very new. I'll try to keep incompatible changes to a minimum, but can't promise that there won't be any incompatible changes.
+
+
+## License
+
+The source code of this theme, excluding files in the `kit/` and `fonts/Roboto/` directories, is licensed under the MIT license. See [LICENSE.txt](./LICENCE.txt) for details.
+
+The "Karlsruhe Institute of Technology" logo in both German and English language is a protected word and figurative mark of the Karlsruhe Institute of Technology and must only be used in accordence with their usage policy.
diff --git a/presentation/assets/esense.png b/presentation/assets/esense.png
new file mode 100644
index 0000000..f63c57d
--- /dev/null
+++ b/presentation/assets/esense.png
Binary files differ
diff --git a/presentation/assets/kit/banner.jpg b/presentation/assets/kit/banner.jpg
new file mode 100644
index 0000000..70ae1d0
--- /dev/null
+++ b/presentation/assets/kit/banner.jpg
Binary files differ
diff --git a/presentation/assets/kit/logo-de.svg b/presentation/assets/kit/logo-de.svg
new file mode 100644
index 0000000..3e66297
--- /dev/null
+++ b/presentation/assets/kit/logo-de.svg
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="500" width="1000" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
+
+ <metadata>
+
+ <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>
+
+ <path d="m984.5105,25.415961-230.51422,0,0,78.511439,67.39781,0,0,270.66615,95.71893,0,0-270.66615,67.39748,0,0-78.511439zm-253.45829,348.81894h-95.71919v-348.81894h95.71919v348.81894zm-111.85159,0-106.47385,0-126.54981-135.87062,0-77.79425,122.60625-135.51274,109.70066,0-141.24836,175.66465,141.96511,173.51296z" fill-rule="evenodd" fill="#000"/>
+
+ <path d="m363.2329,374.2349,0,0,0,0,0,0z" fill-rule="evenodd" fill="#000"/>
+
+ <path d="m363.2329,374.2349,0,0,0,0,0,0z" fill-rule="evenodd" fill="#000"/>
+
+ <path d="M90.415838,153.04142c-18.283583,22.22712-34.057265,46.60505-46.246544,72.77533l319.06361,148.41815-272.81706-221.19348z" fill-rule="evenodd" fill="#32a189"/>
+
+ <path d="M363.2329,374.2349,214.45625,57.681003c-26.52903,12.188587-50.90675,27.24608-73.13364,45.170947l221.91029,271.38295z" fill-rule="evenodd" fill="#32a189"/>
+
+ <path d="m363.2329,374.2349,0.35846-348.81894h-2.86773c-28.32151,0-55.9259,3.585389-82.45464,10.038217l84.96391,338.78072z" fill-rule="evenodd" fill="#000"/>
+
+ <path d="m363.2329,374.2349,0,0,0,0,0,0,0,0z" fill-rule="evenodd" fill="#000"/>
+
+ <path d="m363.2329,374.2349,0,0,0,0,0,0,0,0z" fill-rule="evenodd" fill="#000"/>
+
+ <path d="M21.225547,288.91246c-7.169814,27.24608-10.754847,55.92567-11.113434,85.32244h353.12079l-342.00735-85.32244z" fill-rule="evenodd" fill="#32a189"/>
+
+ <path fill-rule="nonzero" fill="#000" d="m989.33109,452.77847c-1.44216,1.19131-5.95591,3.19757-9.84307,3.19757-5.58122,0-10.53349-4.32639-10.53349-10.65844h22.82176c0-10.28324-3.44884-18.05798-14.10697-18.05798-9.02821,0-14.98579,6.70993-14.98579,16.17705,0,10.40815,5.20478,17.31512,16.55317,17.31512,5.26576,0,7.83717-1.26476,10.09439-2.07972v-5.8936zm-20.37656-11.84928c0.43881-4.1385,2.82115-8.90364,8.58997-8.90364,5.07818,0,7.96189,4.0123,7.96189,8.90364h-16.55186zm-19.07245,19.05915,5.89349,0,0-31.97639-5.89349,0,0,31.97639zm6.26966-45.76941-6.646,0,0,6.64602,6.646,0,0-6.64602zm-376.41865,1.38813,6.5511,0,0,6.67707-6.5511,0zm14.01317,0,6.5511,0,0,6.67707-6.5511,0zm18.77129,44.38128,5.89359,0,0-14.54578c0-8.02449,3.44859-13.04061,8.71454-13.04061,1.00367,0,2.19497,0.12495,3.26126,0.5638v-5.26609c-1.25373-0.25119-2.13262-0.44004-3.88735-0.44004-3.38615,0-6.77237,2.38375-8.33984,5.70613h-0.12495v-4.9538h-5.51723v31.97639zm-8.36416-32.73985-5.8936,0,0,14.79694c0,7.7748-3.00852,13.16716-9.71835,13.16716-5.14106-0.31395-6.77084-3.94995-6.77084-11.41085v-16.55325h-5.89359v18.99828c0,8.5894,3.69861,13.74157,11.97578,13.74157,4.45104,0,8.71475-2.20468,10.471-5.84209h0.12494v5.07864h5.70469v-31.9764zm-317.75366,32.73985,5.89359,0,0-14.54578c0-8.02449,3.44859-13.04061,8.71453-13.04061,1.00368,0,2.19498,0.12495,3.26127,0.5638v-5.26609c-1.25373-0.25119-2.13263-0.44004-3.88735-0.44004-3.38616,0-6.77237,2.38375-8.33984,5.70613h-0.12495v-4.9538h-5.51723v31.97639zm654.98132-31.97639-5.45477,0,0,4.76636-0.12495,0c-1.7551-3.44852-4.8898-5.51869-10.53347-5.51869-9.65567,0-14.29554,8.77823-14.29554,16.99202,0,8.27577,4.51485,15.7367,13.66954,15.7367,4.07452,0,8.21335-1.63013,10.72058-4.9522h0.12515v3.13467c0,6.78232-3.6988,10.9833-9.90591,10.9833-4.326,0-7.02239-0.81639-11.537-2.88508l-0.62631,5.45485c5.14092,1.75618,8.08696,2.19507,11.47334,2.19507,11.47447,0,16.48919-5.58123,16.48919-15.30935v-30.59765zm-15.23572,27.21154c-5.51729,0-8.90182-5.26609-8.90182-11.28578,0-5.45477,2.94603-11.91216,8.90182-11.91216,6.2699,0,9.34241,5.70502,9.34241,12.35105,0,5.95722-3.82371,10.84689-9.34241,10.84689zm-53.48143-11.22331c0,9.15472,6.646,16.75161,16.3018,16.75161,9.59354,0,16.23948-7.59689,16.23948-16.75161,0-9.7182-6.52097-16.74056-16.23948-16.74056-9.78072,0-16.3018,7.02236-16.3018,16.74056zm6.27115,0c0-6.08074,3.69845-11.97463,10.03065-11.97463,6.26986,0,9.9699,5.89389,9.9699,11.97463,0,5.70608-3.07253,11.97586-9.9699,11.97586-6.95964,0-10.03065-6.26978-10.03065-11.97586zm-20.81663,15.98816,5.89355,0,0-47.02312-5.89355,0,0,47.02312zm-41.19324-15.98816c0,9.15472,6.64569,16.75161,16.30175,16.75161,9.59324,0,16.23931-7.59689,16.23931-16.75161,0-9.7182-6.5211-16.74056-16.23931-16.74056-9.78094,0-16.30175,7.02236-16.30175,16.74056zm6.27082,0c0-6.08074,3.69849-11.97463,10.03093-11.97463,6.26971,0,9.9696,5.89389,9.9696,11.97463,0,5.70608-3.07239,11.97586-9.9696,11.97586-6.95951,0-10.03093-6.26978-10.03093-11.97586zm-42.44695,15.98816,5.89359,0,0-14.79684c0-7.77343,3.01004-13.16595,9.71821-13.16595,5.1412,0.3127,6.77103,3.95024,6.77103,11.41112v16.55167h5.89359v-18.99667c0-8.58972-3.69852-13.73205-11.97433-13.73205-4.45236,0-8.71621,2.19508-10.47099,5.83106h-0.12494v-5.07873h-5.7062v31.97639zm-38.30816,0,5.89359,0,0-14.79684c0-7.77343,3.00974-13.16595,9.71821-13.16595,5.14096,0.3127,6.77074,3.95024,6.77074,11.41112v16.55167h5.89388v-18.99667c0-8.58972-3.6988-13.73205-11.97463-13.73205-4.45236,0-8.15087,1.94364-10.28319,5.32973h-0.12495v-19.62413h-5.89359v47.02312zm-7.0223-31.47347c-1.69231-0.69-4.76451-1.25525-7.14713-1.25525-9.78083,0-16.30173,7.02236-16.30173,16.74056,0,9.15472,6.64577,16.75161,16.30173,16.75161,2.13122,0,4.9535-0.18885,7.39851-1.32725l-0.43857-5.26584c-1.81876,1.19129-4.32626,1.81734-6.33244,1.81734-7.58718,0-10.65953-6.26978-10.65953-11.97586,0-6.08074,3.69985-11.97463,10.28324-11.97463,1.88001,0,4.13734,0.43884,6.39479,1.37868l0.50113-4.88936zm-31.16138,24.2636c-1.44215,1.19131-5.95589,3.19757-9.84301,3.19757-5.58129,0-10.53352-4.32639-10.53352-10.65844h22.82174c0-10.28324-3.44883-18.05798-14.1069-18.05798-9.02823,0-14.98582,6.70993-14.98582,16.17705,0,10.40815,5.20483,17.31512,16.55311,17.31512,5.26579,0,7.83719-1.26476,10.0944-2.07972v-5.8936zm-20.37653-11.84928c0.43885-4.1385,2.82114-8.90364,8.58996-8.90364,5.07816,0,7.96187,4.0123,7.96187,8.90364h-16.55183zm-25.08009,19.05915,6.26983,0,0-38.24596,13.60555,0,0-5.51725-33.48131,0,0,5.51725,13.60593,0,0,38.24596zm-104.32843,0,5.89368,0,0-27.21003,8.46447,0,0-4.76636-8.46447,0,0-3.44698c0-4.32752,0.62609-7.58744,5.70438-7.58744,1.00403,0,2.13273,0.12495,2.82266,0.37611l0.24973-4.76447c-1.19106-0.18907-2.44466-0.37642-3.9497-0.37642-8.71437,0-10.72075,5.07873-10.72075,12.85321v2.94599h-7.52474v4.76636h7.52474v27.21003zm-27.06455-31.97639-8.46462,0,0-9.27811-5.89359,1.87971,0,7.3984-7.21102,0,0,4.76636,7.21102,0,0,18.68427c0,6.39461,3.76111,9.28921,9.84347,9.28921,1.88106,0,3.69852-0.50095,5.01606-0.88836v-5.01622c-0.87744,0.56495-2.19508,1.12883-4.0139,1.12883-2.6946,0-4.95204-2.00626-4.95204-5.70476v-17.49297h8.46462v-4.76636zm-27.0238,0-5.89359,0,0,14.79693c0,7.77481-3.00853,13.16716-9.71835,13.16716-5.14107-0.31395-6.77085-3.94994-6.77085-11.41085v-16.55324h-5.89359v18.99827c0,8.5894,3.69862,13.74157,11.97578,13.74157,4.45104,0,8.71476-2.20468,10.47101-5.84208h0.12493v5.07863h5.7047v-31.97639zm-35.67485,0-8.46461,0,0-9.27811-5.89342,1.87971,0,7.3984-7.21117,0,0,4.76636,7.21117,0,0,18.68427c0,6.39461,3.76101,9.28921,9.84319,9.28921,1.88124,0,3.69864-0.50095,5.01622-0.88836v-5.01622c-0.87741,0.56495-2.19516,1.12883-4.01388,1.12883-2.69465,0-4.95211-2.00626-4.95211-5.70476v-17.49297h8.46461v-4.76636zm-33.6698,31.97639,5.89349,0,0-31.97639-5.89349,0,0,31.97639zm6.26966-45.76941-6.646,0,0,6.64602,6.646,0,0-6.64602zm-14.42052,13.79302-8.46474,0,0-9.27811-5.89359,1.87971,0,7.3984-7.21101,0,0,4.76636,7.21101,0,0,18.68427c0,6.39461,3.76092,9.28921,9.84329,9.28921,1.88125,0,3.69864-0.50095,5.01618-0.88836v-5.01622c-0.8775,0.56495-2.19492,1.12883-4.0137,1.12883-2.69477,0-4.95218-2.00626-4.95218-5.70476v-17.49297h8.46474v-4.76636zm-44.07831,30.97376c2.69619,1.45224,5.76853,1.76608,8.77692,1.76608,5.70613,0,11.16084-3.14597,11.16084-9.97918,0-10.21978-13.85549-8.33972-13.85549-14.85966,0-2.63369,2.63215-3.8874,5.64214-3.8874,1.38009,0,4.89115,0.8152,6.20723,1.63011l0.50126-5.14079c-2.32007-0.69-4.57599-1.25525-7.33592-1.25525-6.33232,0-11.28586,3.19865-11.28586,9.84463,0,8.96607,13.85699,8.46322,13.85699,14.29434,0,3.44862-3.32221,4.57745-6.01855,4.57745-1.69372,0-5.01586-0.75255-7.33592-2.25763l-0.31364,5.2673zm-35.61229,1.00263,5.89359,0,0-14.79684c0-7.77343,3.00987-13.16595,9.71825-13.16595,5.14097,0.3127,6.77094,3.95024,6.77094,11.41112v16.55167h5.8936v-18.99667c0-8.58972-3.69869-13.73205-11.97444-13.73205-4.45242,0-8.71602,2.19508-10.47082,5.83106h-0.12495v-5.07873h-5.70615v31.97639zm-16.86687,0,6.26977,0,0-43.76321-6.26977,0,0,43.76321zm-51.94799-7.20987c-1.44257,1.19131-5.95598,3.19757-9.84337,3.19757-5.58117,0-10.53342-4.32639-10.53342-10.65844h22.82174c0-10.28324-3.44881-18.05798-14.10704-18.05798-9.02826,0-14.98566,6.70993-14.98566,16.17705,0,10.40815,5.20475,17.31512,16.55311,17.31512,5.26596,0,7.83717-1.26476,10.09464-2.07972v-5.8936zm-20.37679-11.84928c0.43883-4.1385,2.82126-8.90364,8.58971-8.90364,5.07858,0,7.96208,4.0123,7.96208,8.90364h-16.55179zm-42.44682,19.05915,5.89347,0,0-14.79684c0-7.77343,3.00985-13.16595,9.71834-13.16595,5.14103,0.3127,6.77085,3.95024,6.77085,11.41112v16.55167h5.89359v-18.99667c0-8.58972-3.69851-13.73205-11.9745-13.73205-4.45238,0-8.15081,1.94364-10.28338,5.32973h-0.12494v-19.62413h-5.89347v47.02312zm-10.03225-31.97639-5.89338,0,0,14.79693c0,7.77481-3.00857,13.16716-9.71838,13.16716-5.14103-0.31395-6.77097-3.94994-6.77097-11.41085v-16.55324h-5.89348v18.99827c0,8.5894,3.69869,13.74157,11.97585,13.74157,4.45103,0,8.71449-2.20468,10.47082-5.84208h0.12495v5.07863h5.70463v-31.97639zm-52.6665,31.97639,5.89359,0,0-14.54578c0-8.02449,3.44859-13.04061,8.71453-13.04061,1.00368,0,2.19498,0.12495,3.26127,0.5638v-5.26609c-1.25373-0.25119-2.13263-0.44004-3.88735-0.44004-3.38616,0-6.77237,2.38375-8.33985,5.70613h-0.12494v-4.9538h-5.51723v31.97639zm-27.0864-1.00263c2.69628,1.45224,5.76863,1.76608,8.77714,1.76608,5.70602,0,11.16079-3.14597,11.16079-9.97918,0-10.21978-13.85556-8.33972-13.85556-14.85966,0-2.63369,2.6323-3.8874,5.6422-3.8874,1.38004,0,4.89101,0.8152,6.20709,1.63011l0.5014-5.14079c-2.31994-0.69-4.57607-1.25525-7.33606-1.25525-6.33218,0-11.28579,3.19865-11.28579,9.84463,0,8.96607,13.8572,8.46322,13.8572,14.29434,0,3.44862-3.32245,4.57745-6.01869,4.57745-1.69366,0-5.01593-0.75255-7.33598-2.25763l-0.31374,5.2673zm-13.98187,1.00263,5.89348,0,0-47.02312-5.89348,0,0,47.02312zm-25.142816,0,5.893593,0,0-14.54578c0-8.02449,3.448563-13.04061,8.714486-13.04061,1.003861,0,2.194954,0.12495,3.261287,0.5638v-5.26609c-1.253771-0.25119-2.132461-0.44004-3.88745-0.44004-3.386029,0-6.772306,2.38375-8.339593,5.70613h-0.12515v-4.9538h-5.517173v31.97639zm-33.042359-24.70284c2.382393-2.00624,5.956024-3.25995,9.278344-3.25995,5.894747,0,7.900926,2.82143,7.900926,8.33867-2.319941-0.12494-3.9497-0.12494-6.269642-0.12494-6.082329,0-14.860854,2.5069-14.860854,10.53341,0,6.95964,4.82866,9.97919,11.725848,9.97919,5.39095,0,8.525937-2.95708,9.905786-4.90081h0.124944v4.13735h5.517153c-0.124945-0.93985-0.249868-2.63245-0.249868-6.26993v-13.22922c0-8.71474-3.699895-13.22957-12.853212-13.22957-4.076067,0-7.587185,1.25525-10.533291,3.00998l0.313763,5.01591zm17.17927,12.28975c0,4.7647-3.072328,8.40079-8.903449,8.40079-2.696093,0-5.9559-1.81734-5.9559-5.20343,0-5.64368,7.899607-6.14495,11.097024-6.14495,1.253607,0,2.507213,0.12495,3.762325,0.12495v2.82266zm-59.939979,12.41309,6.2698486,0,0-21.44286,19.499026,21.44286,9.154699,0-22.195389-23.07276,20.565444-20.69045-8.339654,0-18.684126,19.24922,0-19.24922-6.2698486,0,0,43.76321z"/>
+
+</svg> \ No newline at end of file
diff --git a/presentation/assets/kit/logo-en.svg b/presentation/assets/kit/logo-en.svg
new file mode 100644
index 0000000..89ae098
--- /dev/null
+++ b/presentation/assets/kit/logo-en.svg
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.0" width="1000" height="500" id="svg4523">
+ <defs id="defs4525"/>
+ <g id="layer1">
+ <g transform="matrix(2.0960172,0,0,2.0960172,-293.72903,-223.21478)" id="g4572">
+ <path d="M 609.84127,118.62051 L 499.86416,118.62051 L 499.86416,156.0779 L 532.0193,156.0779 L 532.0193,285.21128 L 577.68629,285.21128 L 577.68629,156.0779 L 609.84127,156.0779 L 609.84127,118.62051 z M 488.91767,285.04017 L 443.25055,285.04017 L 443.25055,118.62051 L 488.91767,118.62051 L 488.91767,285.04017 z M 435.55387,285.04017 L 384.75576,285.04017 L 324.37952,220.21702 L 324.37952,183.1018 L 382.87431,118.44939 L 435.21191,118.44939 L 367.82307,202.25806 L 435.55387,285.04017 z" id="path73" style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 z" id="path75" style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 z" id="path77" style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 183.27346,179.50994 C 174.55046,190.11438 167.02492,201.74496 161.20948,214.23066 L 313.43303,285.04017 L 183.27346,179.50994 z" id="path79" style="fill:#32a189;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 313.43303,285.04017 L 242.45248,134.01399 C 229.79562,139.8291 218.16514,147.01295 207.56081,155.56481 L 313.43303,285.04017 L 313.43303,285.04017 z" id="path81" style="fill:#32a189;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 313.43303,285.04017 L 313.60405,118.62051 C 313.09098,118.62051 312.74897,118.62051 312.23587,118.62051 C 298.72383,118.62051 285.55392,120.33108 272.8972,123.40969 L 313.43303,285.04017 L 313.43303,285.04017 z" id="path83" style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 z" id="path85" style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 L 313.43303,285.04017 z" id="path87" style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 150.26314,244.33329 C 146.84246,257.33225 145.13206,271.01513 144.96098,285.04017 L 313.43303,285.04017 L 150.26314,244.33329 z" id="path89" style="fill:#32a189;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
+ <path d="M 144.9077,326.33115 L 147.94868,326.33115 L 147.94868,315.93101 L 157.40603,326.33115 L 161.84621,326.33115 L 151.08108,315.14048 L 161.05566,305.10527 L 157.01079,305.10527 L 147.94868,314.44146 L 147.94868,305.10527 L 144.9077,305.10527 L 144.9077,326.33115 z" id="path91" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 165.64735,314.34987 C 166.80285,313.37681 168.53612,312.76874 170.1475,312.76874 C 173.00655,312.76874 173.97958,314.13718 173.97958,316.81313 C 172.85437,316.75249 172.06391,316.75249 170.9387,316.75249 C 167.98867,316.75249 163.73094,317.96838 163.73094,321.86137 C 163.73094,325.23691 166.07292,326.70144 169.41817,326.70144 C 172.03287,326.70144 173.55339,325.26721 174.22264,324.32447 L 174.28329,324.32447 L 174.28329,326.33115 L 176.9592,326.33115 C 176.89859,325.87531 176.83801,325.05437 176.83801,323.29013 L 176.83801,316.87374 C 176.83801,312.64695 175.0435,310.45718 170.60399,310.45718 C 168.62703,310.45718 166.92408,311.066 165.49517,311.91707 L 165.64735,314.34987 z M 173.97958,320.3106 C 173.97958,322.62156 172.48945,324.38512 169.66126,324.38512 C 168.35361,324.38512 166.77255,323.50368 166.77255,321.86137 C 166.77255,319.12409 170.60399,318.88097 172.15479,318.88097 C 172.76281,318.88097 173.37083,318.94156 173.97958,318.94156 L 173.97958,320.3106 z" id="path93" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 181.67344,326.33115 L 184.53193,326.33115 L 184.53193,319.27621 C 184.53193,315.3842 186.20454,312.9513 188.7586,312.9513 C 189.24549,312.9513 189.82319,313.01191 190.34038,313.22475 L 190.34038,310.67061 C 189.73228,310.54878 189.3061,310.45718 188.4549,310.45718 C 186.81262,310.45718 185.17022,311.61334 184.41006,313.22475 L 184.34936,313.22475 L 184.34936,310.82207 L 181.67344,310.82207 L 181.67344,326.33115 z" id="path95" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 193.86812,326.33115 L 196.72656,326.33115 L 196.72656,303.52416 L 193.86812,303.52416 L 193.86812,326.33115 z" id="path97" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 200.64956,325.84486 C 201.9573,326.54922 203.44744,326.70144 204.90662,326.70144 C 207.67413,326.70144 210.31978,325.17559 210.31978,321.86137 C 210.31978,316.90461 203.59961,317.81647 203.59961,314.65419 C 203.59961,313.37681 204.87632,312.76874 206.33617,312.76874 C 207.00551,312.76874 208.70839,313.16412 209.34671,313.55937 L 209.5899,311.066 C 208.46469,310.73134 207.37043,310.45718 206.03179,310.45718 C 202.96058,310.45718 200.55799,312.00858 200.55799,315.23199 C 200.55799,319.58068 207.27896,319.33679 207.27896,322.16498 C 207.27896,323.83762 205.66752,324.38512 204.3598,324.38512 C 203.53835,324.38512 201.92699,324.02012 200.80173,323.29013 L 200.64956,325.84486 z" id="path99" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 213.78691,326.33115 L 216.6454,326.33115 L 216.6454,319.27621 C 216.6454,315.3842 218.31802,312.9513 220.87209,312.9513 C 221.35889,312.9513 221.93669,313.01191 222.45386,313.22475 L 222.45386,310.67061 C 221.84578,310.54878 221.4195,310.45718 220.56843,310.45718 C 218.92609,310.45718 217.28372,311.61334 216.52347,313.22475 L 216.46286,313.22475 L 216.46286,310.82207 L 213.78691,310.82207 L 213.78691,326.33115 z" id="path101" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 239.33103,310.82207 L 236.47265,310.82207 L 236.47265,317.99883 C 236.47265,321.76974 235.01344,324.38512 231.75907,324.38512 C 229.26559,324.23285 228.47504,322.46933 228.47504,318.85067 L 228.47504,310.82207 L 225.6166,310.82207 L 225.6166,320.03655 C 225.6166,324.20255 227.41053,326.70144 231.42509,326.70144 C 233.58391,326.70144 235.65176,325.63213 236.50361,323.86793 L 236.56419,323.86793 L 236.56419,326.33115 L 239.33103,326.33115 L 239.33103,310.82207 z" id="path103" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 244.19684,326.33115 L 247.05527,326.33115 L 247.05527,319.15444 C 247.05527,315.3842 248.5151,312.76874 251.76883,312.76874 C 254.26231,312.9204 255.0528,314.68467 255.0528,318.30332 L 255.0528,326.33115 L 257.91129,326.33115 L 257.91129,317.11745 C 257.91129,312.9513 256.11745,310.45718 252.10346,310.45718 C 249.94398,310.45718 248.15018,311.39988 247.11585,313.04219 L 247.05527,313.04219 L 247.05527,303.52416 L 244.19684,303.52416 L 244.19684,326.33115 z" id="path105" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 274.66733,322.83425 C 273.96766,323.41205 271.77858,324.38512 269.89313,324.38512 C 267.18617,324.38512 264.78425,322.28675 264.78425,319.2156 L 275.85317,319.2156 C 275.85317,314.22806 274.18044,310.45718 269.01102,310.45718 C 264.63217,310.45718 261.74273,313.71161 261.74273,318.30332 C 261.74273,323.35144 264.26712,326.70144 269.77126,326.70144 C 272.32534,326.70144 273.57242,326.08801 274.66733,325.69274 L 274.66733,322.83425 z M 264.78425,317.08715 C 264.99709,315.07991 266.15261,312.76874 268.9504,312.76874 C 271.4136,312.76874 272.81214,314.71477 272.81214,317.08715 L 264.78425,317.08715 z" id="path107" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 288.41269,326.33115 L 291.45363,326.33115 L 291.45363,305.10527 L 288.41269,305.10527 L 288.41269,326.33115 z" id="path109" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 296.5934,326.33115 L 299.45189,326.33115 L 299.45189,319.15444 C 299.45189,315.3842 300.91173,312.76874 304.1654,312.76874 C 306.65886,312.9204 307.44942,314.68467 307.44942,318.30332 L 307.44942,326.33115 L 310.30791,326.33115 L 310.30791,317.11745 C 310.30791,312.9513 308.51399,310.45718 304.50011,310.45718 C 302.34061,310.45718 300.2727,311.52183 299.42159,313.28534 L 299.36098,313.28534 L 299.36098,310.82207 L 296.5934,310.82207 L 296.5934,326.33115 z" id="path111" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 313.86595,325.84486 C 315.17365,326.54922 316.66378,326.70144 318.1229,326.70144 C 320.89047,326.70144 323.53609,325.17559 323.53609,321.86137 C 323.53609,316.90461 316.81595,317.81647 316.81595,314.65419 C 316.81595,313.37681 318.09259,312.76874 319.55248,312.76874 C 320.22185,312.76874 321.92477,313.16412 322.56309,313.55937 L 322.80621,311.066 C 321.68094,310.73134 320.58678,310.45718 319.24817,310.45718 C 316.17689,310.45718 313.77434,312.00858 313.77434,315.23199 C 313.77434,319.58068 320.49521,319.33679 320.49521,322.16498 C 320.49521,323.83762 318.88388,324.38512 317.57611,324.38512 C 316.75463,324.38512 315.14334,324.02012 314.01807,323.29013 L 313.86595,325.84486 z" id="path113" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 335.24466,310.82207 L 331.13912,310.82207 L 331.13912,306.32204 L 328.28063,307.23373 L 328.28063,310.82207 L 324.78317,310.82207 L 324.78317,313.13384 L 328.28063,313.13384 L 328.28063,322.19602 C 328.28063,325.29751 330.10474,326.70144 333.05479,326.70144 C 333.96723,326.70144 334.84869,326.45847 335.48772,326.27057 L 335.48772,323.83762 C 335.06212,324.11163 334.42315,324.38512 333.54101,324.38512 C 332.234,324.38512 331.13912,323.41205 331.13912,321.61822 L 331.13912,313.13384 L 335.24466,313.13384 L 335.24466,310.82207 z" id="path115" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 339.19796,326.33115 L 342.0564,326.33115 L 342.0564,310.82207 L 339.19796,310.82207 L 339.19796,326.33115 z M 342.23885,304.13223 L 339.01543,304.13223 L 339.01543,307.35566 L 342.23885,307.35566 L 342.23885,304.13223 z" id="path117" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 355.52837,310.82207 L 351.42289,310.82207 L 351.42289,306.32204 L 348.56449,307.23373 L 348.56449,310.82207 L 345.06695,310.82207 L 345.06695,313.13384 L 348.56449,313.13384 L 348.56449,322.19602 C 348.56449,325.29751 350.38864,326.70144 353.3386,326.70144 C 354.25103,326.70144 355.1325,326.45847 355.77155,326.27057 L 355.77155,323.83762 C 355.34599,324.11163 354.70686,324.38512 353.82475,324.38512 C 352.5178,324.38512 351.42289,323.41205 351.42289,321.61822 L 351.42289,313.13384 L 355.52837,313.13384 L 355.52837,310.82207 z" id="path119" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 372.83126,310.82207 L 369.97277,310.82207 L 369.97277,317.99883 C 369.97277,321.76974 368.51359,324.38512 365.25921,324.38512 C 362.76571,324.23285 361.97524,322.46933 361.97524,318.85067 L 361.97524,310.82207 L 359.11675,310.82207 L 359.11675,320.03655 C 359.11675,324.20255 360.91064,326.70144 364.9252,326.70144 C 367.08403,326.70144 369.152,325.63213 370.00381,323.86793 L 370.06439,323.86793 L 370.06439,326.33115 L 372.83126,326.33115 L 372.83126,310.82207 z" id="path121" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 385.93825,310.82207 L 381.83277,310.82207 L 381.83277,306.32204 L 378.97428,307.23373 L 378.97428,310.82207 L 375.47682,310.82207 L 375.47682,313.13384 L 378.97428,313.13384 L 378.97428,322.19602 C 378.97428,325.29751 380.79848,326.70144 383.74853,326.70144 C 384.66087,326.70144 385.54237,326.45847 386.1814,326.27057 L 386.1814,323.83762 C 385.75583,324.11163 385.11675,324.38512 384.23459,324.38512 C 382.92767,324.38512 381.83277,323.41205 381.83277,321.61822 L 381.83277,313.13384 L 385.93825,313.13384 L 385.93825,310.82207 z" id="path123" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 401.41696,322.83425 C 400.71726,323.41205 398.5282,324.38512 396.64273,324.38512 C 393.93583,324.38512 391.53392,322.28675 391.53392,319.2156 L 402.60272,319.2156 C 402.60272,314.22806 400.9301,310.45718 395.76068,310.45718 C 391.38178,310.45718 388.49239,313.71161 388.49239,318.30332 C 388.49239,323.35144 391.01682,326.70144 396.52087,326.70144 C 399.07496,326.70144 400.32203,326.08801 401.41696,325.69274 L 401.41696,322.83425 z M 391.53392,317.08715 C 391.7467,315.07991 392.90227,312.76874 395.7001,312.76874 C 398.16324,312.76874 399.56183,314.71477 399.56183,317.08715 L 391.53392,317.08715 z" id="path125" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 413.85467,318.57663 C 413.85467,323.01682 417.07812,326.70144 421.76131,326.70144 C 426.41432,326.70144 429.63759,323.01682 429.63759,318.57663 C 429.63759,313.86314 426.47479,310.45718 421.76131,310.45718 C 417.01749,310.45718 413.85467,313.86314 413.85467,318.57663 z M 416.8963,318.57663 C 416.8963,315.62737 418.69004,312.76874 421.76131,312.76874 C 424.80226,312.76874 426.59668,315.62737 426.59668,318.57663 C 426.59668,321.34417 425.1066,324.38512 421.76131,324.38512 C 418.38573,324.38512 416.8963,321.34417 416.8963,318.57663 z" id="path127" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 435.3242,326.33115 L 438.18273,326.33115 L 438.18273,313.13384 L 442.28814,313.13384 L 442.28814,310.82207 L 438.18273,310.82207 L 438.18273,309.15023 C 438.18273,307.05131 438.4864,305.4702 440.94945,305.4702 C 441.43642,305.4702 441.98386,305.53084 442.31849,305.65262 L 442.43961,303.34177 C 441.86193,303.25012 441.25391,303.1592 440.52394,303.1592 C 436.29733,303.1592 435.3242,305.62247 435.3242,309.39322 L 435.3242,310.82207 L 431.67458,310.82207 L 431.67458,313.13384 L 435.3242,313.13384 L 435.3242,326.33115 z" id="path129" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 458.25372,326.33115 L 461.29469,326.33115 L 461.29469,307.78123 L 467.89361,307.78123 L 467.89361,305.10527 L 451.65462,305.10527 L 451.65462,307.78123 L 458.25372,307.78123 L 458.25372,326.33115 z" id="path131" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 480.30093,322.83425 C 479.60147,323.41205 477.41223,324.38512 475.52691,324.38512 C 472.81989,324.38512 470.41798,322.28675 470.41798,319.2156 L 481.4869,319.2156 C 481.4869,314.22806 479.81416,310.45718 474.64482,310.45718 C 470.26598,310.45718 467.37645,313.71161 467.37645,318.30332 C 467.37645,323.35144 469.90088,326.70144 475.40498,326.70144 C 477.95898,326.70144 479.20615,326.08801 480.30093,325.69274 L 480.30093,322.83425 z M 470.41798,317.08715 C 470.63083,315.07991 471.78628,312.76874 474.58425,312.76874 C 477.04724,312.76874 478.44589,314.71477 478.44589,317.08715 L 470.41798,317.08715 z" id="path133" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 495.41472,311.066 C 494.59392,310.73134 493.10385,310.45718 491.94824,310.45718 C 487.20438,310.45718 484.04163,313.86314 484.04163,318.57663 C 484.04163,323.01682 487.26494,326.70144 491.94824,326.70144 C 492.98192,326.70144 494.35077,326.60983 495.53664,326.0577 L 495.32393,323.50368 C 494.4418,324.08148 493.22562,324.38512 492.25259,324.38512 C 488.57268,324.38512 487.08254,321.34417 487.08254,318.57663 C 487.08254,315.62737 488.87703,312.76874 492.07008,312.76874 C 492.98192,312.76874 494.07676,312.98158 495.17166,313.43742 L 495.41472,311.066 z" id="path135" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 498.82065,326.33115 L 501.67914,326.33115 L 501.67914,319.15444 C 501.67914,315.3842 503.13891,312.76874 506.39263,312.76874 C 508.88608,312.9204 509.67655,314.68467 509.67655,318.30332 L 509.67655,326.33115 L 512.53518,326.33115 L 512.53518,317.11745 C 512.53518,312.9513 510.7412,310.45718 506.72729,310.45718 C 504.56782,310.45718 502.77398,311.39988 501.73977,313.04219 L 501.67914,313.04219 L 501.67914,303.52416 L 498.82065,303.52416 L 498.82065,326.33115 z" id="path137" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 517.40074,326.33115 L 520.25923,326.33115 L 520.25923,319.15444 C 520.25923,315.3842 521.71915,312.76874 524.97272,312.76874 C 527.46629,312.9204 528.25678,314.68467 528.25678,318.30332 L 528.25678,326.33115 L 531.11527,326.33115 L 531.11527,317.11745 C 531.11527,312.9513 529.32143,310.45718 525.30752,310.45718 C 523.14805,310.45718 521.08002,311.52183 520.22892,313.28534 L 520.16834,313.28534 L 520.16834,310.82207 L 517.40074,310.82207 L 517.40074,326.33115 z" id="path139" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 534.94676,318.57663 C 534.94676,323.01682 538.17003,326.70144 542.85338,326.70144 C 547.50626,326.70144 550.72971,323.01682 550.72971,318.57663 C 550.72971,313.86314 547.56687,310.45718 542.85338,310.45718 C 538.10946,310.45718 534.94676,313.86314 534.94676,318.57663 z M 537.98821,318.57663 C 537.98821,315.62737 539.78204,312.76874 542.85338,312.76874 C 545.89429,312.76874 547.6888,315.62737 547.6888,318.57663 C 547.6888,321.34417 546.19864,324.38512 542.85338,324.38512 C 539.4779,324.38512 537.98821,321.34417 537.98821,318.57663 z" id="path141" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 554.92616,326.33115 L 557.78463,326.33115 L 557.78463,303.52416 L 554.92616,303.52416 L 554.92616,326.33115 z" id="path143" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 561.98096,318.57663 C 561.98096,323.01682 565.20438,326.70144 569.8876,326.70144 C 574.54063,326.70144 577.76402,323.01682 577.76402,318.57663 C 577.76402,313.86314 574.60124,310.45718 569.8876,310.45718 C 565.14379,310.45718 561.98096,313.86314 561.98096,318.57663 z M 565.02257,318.57663 C 565.02257,315.62737 566.81638,312.76874 569.8876,312.76874 C 572.92859,312.76874 574.72317,315.62737 574.72317,318.57663 C 574.72317,321.34417 573.23294,324.38512 569.8876,324.38512 C 566.51206,324.38512 565.02257,321.34417 565.02257,318.57663 z" id="path145" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 595.30991,310.82207 L 592.66426,310.82207 L 592.66426,313.13384 L 592.60368,313.13384 C 591.75242,311.46125 590.23204,310.45718 587.49477,310.45718 C 582.81161,310.45718 580.5612,314.71477 580.5612,318.69859 C 580.5612,322.71248 582.75097,326.33115 587.19115,326.33115 C 589.16736,326.33115 591.17476,325.54051 592.39081,323.92925 L 592.45156,323.92925 L 592.45156,325.44962 C 592.45156,328.73916 590.65758,330.7767 587.64703,330.7767 C 585.54885,330.7767 584.24105,330.38074 582.05139,329.37739 L 581.74762,332.02308 C 584.24105,332.87486 585.66993,333.08773 587.31238,333.08773 C 592.87769,333.08773 595.30991,330.38074 595.30991,325.66244 L 595.30991,310.82207 z M 587.92034,324.02012 C 585.24436,324.02012 583.60281,321.46598 583.60281,318.54633 C 583.60281,315.90068 585.03168,312.76874 587.92034,312.76874 C 590.96134,312.76874 592.45156,315.53577 592.45156,318.7592 C 592.45156,321.64855 590.597,324.02012 587.92034,324.02012 z" id="path147" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ <path d="M 598.83764,332.87486 C 599.35486,332.9658 599.87128,333.08773 600.78374,333.08773 C 604.55451,333.08773 605.67977,329.65141 606.74428,326.67117 L 612.46111,310.82207 L 609.57261,310.82207 L 605.31481,323.6552 L 605.25406,323.6552 L 601.08805,310.82207 L 597.95556,310.82207 L 603.21651,325.29751 C 603.39908,325.8147 603.76401,326.60983 603.76401,326.94444 C 603.76401,327.24894 602.91217,330.7767 600.35802,330.7767 C 599.87128,330.7767 599.38513,330.65478 599.02021,330.533 L 598.83764,332.87486 z" id="path149" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
+ </g>
+ </g>
+</svg> \ No newline at end of file
diff --git a/presentation/assets/screenshot-level-selection.png b/presentation/assets/screenshot-level-selection.png
new file mode 100644
index 0000000..0fc79a6
--- /dev/null
+++ b/presentation/assets/screenshot-level-selection.png
Binary files differ
diff --git a/presentation/assets/screenshot-level.png b/presentation/assets/screenshot-level.png
new file mode 100644
index 0000000..eb1a0b7
--- /dev/null
+++ b/presentation/assets/screenshot-level.png
Binary files differ
diff --git a/presentation/assets/stepmania.png b/presentation/assets/stepmania.png
new file mode 100644
index 0000000..c498d60
--- /dev/null
+++ b/presentation/assets/stepmania.png
Binary files differ
diff --git a/presentation/fonts/Roboto/LICENSE.txt b/presentation/fonts/Roboto/LICENSE.txt
new file mode 100644
index 0000000..75b5248
--- /dev/null
+++ b/presentation/fonts/Roboto/LICENSE.txt
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/presentation/fonts/Roboto/Roboto-Black.ttf b/presentation/fonts/Roboto/Roboto-Black.ttf
new file mode 100644
index 0000000..0112e7d
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-Black.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-BlackItalic.ttf b/presentation/fonts/Roboto/Roboto-BlackItalic.ttf
new file mode 100644
index 0000000..b2c6aca
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-BlackItalic.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-Bold.ttf b/presentation/fonts/Roboto/Roboto-Bold.ttf
new file mode 100644
index 0000000..43da14d
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-Bold.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-BoldItalic.ttf b/presentation/fonts/Roboto/Roboto-BoldItalic.ttf
new file mode 100644
index 0000000..bcfdab4
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-BoldItalic.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-Italic.ttf b/presentation/fonts/Roboto/Roboto-Italic.ttf
new file mode 100644
index 0000000..1b5eaa3
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-Italic.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-Light.ttf b/presentation/fonts/Roboto/Roboto-Light.ttf
new file mode 100644
index 0000000..e7307e7
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-Light.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-LightItalic.ttf b/presentation/fonts/Roboto/Roboto-LightItalic.ttf
new file mode 100644
index 0000000..2d277af
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-LightItalic.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-Medium.ttf b/presentation/fonts/Roboto/Roboto-Medium.ttf
new file mode 100644
index 0000000..ac0f908
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-Medium.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-MediumItalic.ttf b/presentation/fonts/Roboto/Roboto-MediumItalic.ttf
new file mode 100644
index 0000000..fc36a47
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-MediumItalic.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-Regular.ttf b/presentation/fonts/Roboto/Roboto-Regular.ttf
new file mode 100644
index 0000000..ddf4bfa
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-Regular.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-Thin.ttf b/presentation/fonts/Roboto/Roboto-Thin.ttf
new file mode 100644
index 0000000..2e0dee6
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-Thin.ttf
Binary files differ
diff --git a/presentation/fonts/Roboto/Roboto-ThinItalic.ttf b/presentation/fonts/Roboto/Roboto-ThinItalic.ttf
new file mode 100644
index 0000000..084f9c0
--- /dev/null
+++ b/presentation/fonts/Roboto/Roboto-ThinItalic.ttf
Binary files differ
diff --git a/presentation/kit-slides.typ b/presentation/kit-slides.typ
new file mode 100644
index 0000000..b3b5cf8
--- /dev/null
+++ b/presentation/kit-slides.typ
@@ -0,0 +1,321 @@
+//==========================================================
+// Karlsruhe Institute of Technology theme for Typst slides.
+// Based on the official Powerpoint Theme and Latex Template
+//
+// You don't need to edit this file. Only presentation.typ
+// =========================================================
+#import "@preview/polylux:0.3.1": *
+
+#let _kit-outer-margin = 3mm
+#let _kit-inner-margin = 11mm
+#let _kit-top-margin = 10mm
+#let _kit-bottom-margin = 11mm
+
+#let kit-green = rgb(0, 150, 130)
+#let kit-blue = rgb(70, 100, 170)
+#let green = kit-green
+#let blue = kit-blue
+#let black70 = rgb(64, 64, 64)
+#let brown = rgb(167, 130, 46)
+#let purple = rgb(163, 16, 124)
+#let cyan = rgb(35, 161, 224)
+#let lime = rgb(140, 182, 60)
+#let yellow = rgb(252, 229, 0)
+#let orange = rgb(223, 155, 27)
+#let red = rgb(162, 34, 35)
+
+#let kit-title = state("kit-title", [])
+#let kit-subtitle = state("kit-subtitle", [])
+#let kit-short-title = state("kit-short-title", none)
+#let kit-author = state("kit-author", [])
+#let kit-short-author = state("kit-short-author", none)
+#let kit-group-logo = state("kit-group-logo", none)
+#let kit-institute = state("kit-institute", [])
+#let kit-date = state("kit-date", none)
+#let kit-show-page-count = state("kit-show-page-count", false)
+
+//=================
+// Helper functions
+//=================
+
+#let kit-logo(..rest) = context {
+ if text.lang == "de" {
+ image("/assets/kit/logo-de.svg", ..rest)
+ } else {
+ image("/assets/kit/logo-en.svg", ..rest)
+ }
+}
+
+#let kit-rounded-block(radius: 3mm, body) = {
+ block(
+ radius: (
+ top-right: radius,
+ bottom-left: radius,
+ ),
+ clip: true,
+ body,
+ )
+}
+
+#let kit-list-marker = move(
+ dy: 0.125em,
+ kit-rounded-block(
+ radius: 0.15em,
+ rect(
+ // The latex documentclass uses a size of 1ex, but type only supports em.
+ width: 0.5em,
+ height: 0.5em,
+ fill: kit-green,
+ ),
+ ),
+)
+
+#let kit-theme(
+ title: none,
+ subtitle: none,
+ short-title: none,
+ author: none,
+ short-author: none,
+ language: "de",
+ group-logo: none,
+ institute: none,
+ date: none,
+ aspect-ratio: "16-9",
+ show-page-count: false,
+ body,
+) = {
+
+ if language not in ("en", "de") {
+ panic("Only English (en) and German (de) are currently supported")
+ }
+ set page(margin: 0pt, header-ascent: 0pt, footer-descent: 0pt)
+ // Use power point page sizes, as they differ from default typst page sizes.
+ set page(width: 25.4cm, height: 14.29cm) if aspect-ratio == "16-9"
+ set page(width: 25.4cm, height: 15.88cm) if aspect-ratio == "16-10"
+ set page(width: 25.4cm, height: 19.05cm) if aspect-ratio == "4-3"
+ if aspect-ratio not in ("16-9", "16-10", "4-3") {
+ panic("Unsupported aspect ratio")
+ }
+
+ set text(lang: language, font: ("Arial", "Helvetica", "Roboto"))
+
+ set list(marker: kit-list-marker)
+
+ kit-title.update(title)
+ kit-subtitle.update(subtitle)
+ if short-title == none {
+ kit-short-title.update(title)
+ } else {
+ kit-short-title.update(short-title)
+ }
+ kit-author.update(author)
+ if short-author == none {
+ kit-short-author.update(author)
+ } else {
+ kit-short-author.update(short-author)
+ }
+ kit-institute.update(institute)
+ kit-group-logo.update(group-logo)
+ kit-date.update(date)
+ kit-show-page-count.update(show-page-count)
+
+ body
+}
+
+//=================
+// slides
+//=================
+
+#let title-slide(banner: none) = {
+ show: polylux-slide
+ if banner == none {
+ banner = image("/assets/kit/banner.jpg")
+ }
+
+ // Top half
+ pad(left: _kit-inner-margin, right: 6mm, top: _kit-top-margin)[
+ // KIT logo
+ #place[
+ #kit-logo(width: 45mm)
+ ]
+ // Group logo
+ #place(right)[
+ #block(width: 30mm, height: 30mm)[
+ #set image(width: 100%)
+ #context kit-group-logo.get()
+ ]
+ ]
+ // Title
+ #place(dy: 32mm, text(weight: "bold", size: 26pt, kit-title.display()))
+ // Subtitle
+ #place(dy: 44mm)[
+ #set text(weight: "bold", size: 18pt)
+ #set par(leading: 0.3em)
+ #kit-subtitle.display()
+ ]
+ ]
+
+ // Bottom half
+ align(
+ bottom,
+ pad(x: _kit-outer-margin)[
+ // Banner
+ #block(height: 60mm, below: 0pt)[
+ #kit-rounded-block(radius: 3mm)[
+ #set image(width: 100%, height: 100%)
+ #banner
+ ]
+ ]
+ // Footer
+ #block(height: _kit-bottom-margin, width: 100%)[
+ #grid(
+ columns: (auto, 1fr),
+ [
+ #align(left + horizon)[
+ #block(height: 100%)[
+ #set text(size: 8pt)
+ #context {
+ if text.lang == "en" [
+ KIT - The Research University in the Helmholtz Association
+ ] else if text.lang == "de" [
+ KIT - Die Forschungsuniversität in der Helmholtz-Gemeinschaft
+ ]
+ }
+ ]
+ ]
+ ],
+ [
+ #align(
+ right + horizon,
+ block(height: 100%)[
+ #link(
+ "https://www.kit.edu",
+ text("www.kit.edu", weight: "bold", size: 16.5pt),
+ )
+ ],
+ )
+ ],
+ )
+ ]
+ ],
+ )
+}
+
+#let slide(title: [], body) = {
+ // Title bar
+ let header = block(width: 100%, height: 100%, inset: (x: _kit-inner-margin))[
+ #grid(
+ columns: (auto, 1fr),
+ [
+ #set text(24pt, weight: "bold")
+ // We need a block here to force the grid to take the full height of the surrounding block
+ #block(height: 100%)[
+ #align(left + bottom, title)
+ ]
+ ],
+ [
+ #align(right + bottom)[
+ #kit-logo(width: 30mm)
+ ]
+ ],
+ )
+ ]
+
+ // Content block
+ let wrapped-body = block(
+ width: 100%,
+ height: 100%,
+ inset: (x: _kit-inner-margin, top: 15.5mm),
+ )[
+ #set text(18pt)
+ // Default value, but had to be changed for layout
+ #set block(above: 1.2em)
+ #body
+ ]
+
+ // Footer
+ let footer = block(width: 100%, inset: (x: _kit-outer-margin))[
+ #set block(above: 0pt)
+ #set text(size: 9pt)
+ #line(stroke: rgb("#d8d8d8"), length: 100%)
+ #block(width: 100%, height: 100%)[
+ #align(horizon)[
+ #grid(
+ columns: (20mm, 30mm, 1fr, auto),
+ pad(
+ left: 6mm,
+ context if kit-show-page-count.get() [
+ #logic.logical-slide.display()/#strong(utils.last-slide-number)
+ ] else [
+ #logic.logical-slide.display()
+ ],
+ ),
+ kit-date.display(),
+ [#kit-short-author.display() - #kit-short-title.display()],
+ align(right, kit-institute.display()),
+ )
+ ]
+ ]
+ ]
+
+ set page(
+ header: header,
+ footer: footer,
+ margin: (top: 22.5mm, bottom: _kit-bottom-margin),
+ )
+ polylux-slide(wrapped-body)
+}
+
+// This function is left here for backwards compatibility only. Please use #slide(side-by-side[][]) instead.
+#let split-slide(title: [], body-left, body-right) = {
+ let body = grid(
+ columns: (1fr, 1fr),
+ gutter: 2em,
+ body-left, body-right,
+ )
+
+ slide(title: title, body)
+}
+
+#let kit-color-block(title: [], color: [], body) = {
+ // 80% is a rough heuristic, that produces the correct result for all predefined colors.
+ // Might be adjusted in the future
+ let title-color = if luma(color).components().at(0) >= 80% {
+ black
+ } else {
+ white
+ }
+ kit-rounded-block()[
+ #block(
+ width: 100%,
+ inset: (x: 0.5em, top: 0.3em, bottom: 0.4em),
+ fill: gradient.linear(
+ (color, 0%),
+ (color, 87%),
+ (color.lighten(85%), 100%),
+ dir: ttb,
+ ),
+ text(fill: title-color, title),
+ )
+ #set text(size: 15pt)
+ #block(
+ inset: 0.5em,
+ above: 0pt,
+ fill: color.lighten(85%),
+ width: 100%,
+ body,
+ )
+ ]
+}
+
+#let kit-info-block(title: [], body) = {
+ kit-color-block(title: title, color: kit-green, body)
+}
+
+#let kit-example-block(title: [], body) = {
+ kit-color-block(title: title, color: kit-blue, body)
+}
+
+#let kit-alert-block(title: [], body) = {
+ kit-color-block(title: title, color: red.lighten(10%), body)
+}
diff --git a/presentation/pixi.lock b/presentation/pixi.lock
new file mode 100644
index 0000000..594d720
--- /dev/null
+++ b/presentation/pixi.lock
@@ -0,0 +1,608 @@
+version: 5
+environments:
+ default:
+ channels:
+ - url: https://conda.anaconda.org/conda-forge/
+ packages:
+ linux-64:
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2024.6.2-hbcca054_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.2.0-h77fa898_10.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.2.0-h77fa898_10.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.3.1-h4ab18f5_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/typst-0.11.1-h3c1dd8f_0.conda
+ linux-aarch64:
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-2_gnu.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ca-certificates-2024.6.2-hcefe29a_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-ng-13.2.0-he277a41_10.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-13.2.0-he277a41_10.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.3.1-h68df207_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/typst-0.11.1-h00d8b65_0.conda
+ osx-64:
+ - conda: https://conda.anaconda.org/conda-forge/osx-64/typst-0.11.1-hdd0fa2f_0.conda
+ osx-arm64:
+ - conda: https://conda.anaconda.org/conda-forge/osx-arm64/typst-0.11.1-hac6298f_0.conda
+ win-64:
+ - conda: https://conda.anaconda.org/conda-forge/win-64/typst-0.11.1-ha073cba_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_0.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h8a93ad2_20.conda
+ - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.40.33810-ha82c5b3_20.conda
+ lint:
+ channels:
+ - url: https://conda.anaconda.org/conda-forge/
+ packages:
+ linux-64:
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2024.6.2-hbcca054_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.2.0-h77fa898_10.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.2.0-h77fa898_10.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.3.1-h4ab18f5_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/typos-1.22.7-he9194b0_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/typst-0.11.1-h3c1dd8f_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-64/typstyle-0.11.26-he9194b0_0.conda
+ linux-aarch64:
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-2_gnu.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ca-certificates-2024.6.2-hcefe29a_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-ng-13.2.0-he277a41_10.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-13.2.0-he277a41_10.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.3.1-h68df207_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/typos-1.22.7-h09b8157_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/typst-0.11.1-h00d8b65_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/typstyle-0.11.26-h09b8157_0.conda
+ osx-64:
+ - conda: https://conda.anaconda.org/conda-forge/osx-64/typos-1.22.7-h686f776_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/osx-64/typst-0.11.1-hdd0fa2f_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/osx-64/typstyle-0.11.26-h686f776_0.conda
+ osx-arm64:
+ - conda: https://conda.anaconda.org/conda-forge/osx-arm64/typos-1.22.7-h6e96688_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/osx-arm64/typst-0.11.1-hac6298f_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/osx-arm64/typstyle-0.11.26-h6e96688_0.conda
+ win-64:
+ - conda: https://conda.anaconda.org/conda-forge/win-64/m2w64-gcc-libgfortran-5.3.0-6.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/win-64/m2w64-gcc-libs-5.3.0-7.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/win-64/m2w64-gcc-libs-core-5.3.0-7.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/win-64/m2w64-gmp-6.1.0-2.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/win-64/m2w64-libwinpthread-git-5.0.0.4634.697f757-2.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/win-64/msys2-conda-epoch-20160418-1.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/win-64/typos-1.22.7-h813c833_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/win-64/typst-0.11.1-ha073cba_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/win-64/typstyle-0.11.26-ha073cba_0.conda
+ - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_0.tar.bz2
+ - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h8a93ad2_20.conda
+ - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.40.33810-ha82c5b3_20.conda
+packages:
+- kind: conda
+ name: _libgcc_mutex
+ version: '0.1'
+ build: conda_forge
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
+ sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726
+ md5: d7c89558ba9fa0495403155b64376d81
+ license: None
+ size: 2562
+ timestamp: 1578324546067
+- kind: conda
+ name: _openmp_mutex
+ version: '4.5'
+ build: 2_gnu
+ build_number: 16
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2
+ sha256: fbe2c5e56a653bebb982eda4876a9178aedfc2b545f25d0ce9c4c0b508253d22
+ md5: 73aaf86a425cc6e73fcf236a5a46396d
+ depends:
+ - _libgcc_mutex 0.1 conda_forge
+ - libgomp >=7.5.0
+ constrains:
+ - openmp_impl 9999
+ license: BSD-3-Clause
+ license_family: BSD
+ size: 23621
+ timestamp: 1650670423406
+- kind: conda
+ name: _openmp_mutex
+ version: '4.5'
+ build: 2_gnu
+ build_number: 16
+ subdir: linux-aarch64
+ url: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-2_gnu.tar.bz2
+ sha256: 3702bef2f0a4d38bd8288bbe54aace623602a1343c2cfbefd3fa188e015bebf0
+ md5: 6168d71addc746e8f2b8d57dfd2edcea
+ depends:
+ - libgomp >=7.5.0
+ constrains:
+ - openmp_impl 9999
+ license: BSD-3-Clause
+ license_family: BSD
+ size: 23712
+ timestamp: 1650670790230
+- kind: conda
+ name: ca-certificates
+ version: 2024.6.2
+ build: hbcca054_0
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2024.6.2-hbcca054_0.conda
+ sha256: 979af0932b2a5a26112044891a2d79e402e5ae8166f50fa48b8ebae47c0a2d65
+ md5: 847c3c2905cc467cea52c24f9cfa8080
+ license: ISC
+ size: 156035
+ timestamp: 1717311767102
+- kind: conda
+ name: ca-certificates
+ version: 2024.6.2
+ build: hcefe29a_0
+ subdir: linux-aarch64
+ url: https://conda.anaconda.org/conda-forge/linux-aarch64/ca-certificates-2024.6.2-hcefe29a_0.conda
+ sha256: d27b90ff1e00c34123c37a4c5332bb75c3c5cc6775c57ecfa9f430b629ad3108
+ md5: 3ef6b1a30375f8a973a593698e317191
+ license: ISC
+ size: 156128
+ timestamp: 1717312862469
+- kind: conda
+ name: libgcc-ng
+ version: 13.2.0
+ build: h77fa898_10
+ build_number: 10
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.2.0-h77fa898_10.conda
+ sha256: 78931358d83ff585d0cd448632366a5cbe6bcf41a66c07e8178200008127c2b5
+ md5: bbb96c5e7a11ef8ca2b666fe9fe3d199
+ depends:
+ - _libgcc_mutex 0.1 conda_forge
+ - _openmp_mutex >=4.5
+ constrains:
+ - libgomp 13.2.0 h77fa898_10
+ license: GPL-3.0-only WITH GCC-exception-3.1
+ license_family: GPL
+ size: 802677
+ timestamp: 1718485010755
+- kind: conda
+ name: libgcc-ng
+ version: 13.2.0
+ build: he277a41_10
+ build_number: 10
+ subdir: linux-aarch64
+ url: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-ng-13.2.0-he277a41_10.conda
+ sha256: b7ce0d75a1d064aba6561a0aa23bc89f04337116f226b48fcc031908d9f87c04
+ md5: d8f0fdda114777d95942a556567871f9
+ depends:
+ - _openmp_mutex >=4.5
+ constrains:
+ - libgomp 13.2.0 he277a41_10
+ license: GPL-3.0-only WITH GCC-exception-3.1
+ license_family: GPL
+ size: 482861
+ timestamp: 1718485508685
+- kind: conda
+ name: libgomp
+ version: 13.2.0
+ build: h77fa898_10
+ build_number: 10
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.2.0-h77fa898_10.conda
+ sha256: bcea6ddfea86f0e6a1a831d1d2c3f36f7613b5e447229e19f978ded0d184cf5a
+ md5: 9404d1686e63142d41acc72ef876a588
+ depends:
+ - _libgcc_mutex 0.1 conda_forge
+ license: GPL-3.0-only WITH GCC-exception-3.1
+ license_family: GPL
+ size: 444719
+ timestamp: 1718484940121
+- kind: conda
+ name: libgomp
+ version: 13.2.0
+ build: he277a41_10
+ build_number: 10
+ subdir: linux-aarch64
+ url: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-13.2.0-he277a41_10.conda
+ sha256: c043693a02d6ca356475d1579a376d7371d47843b06e79e5dc498af942dce876
+ md5: 1fa566d0d5d9be41088a7c3788f5bbe6
+ license: GPL-3.0-only WITH GCC-exception-3.1
+ license_family: GPL
+ size: 447893
+ timestamp: 1718485424189
+- kind: conda
+ name: m2w64-gcc-libgfortran
+ version: 5.3.0
+ build: '6'
+ build_number: 6
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/m2w64-gcc-libgfortran-5.3.0-6.tar.bz2
+ sha256: 9de95a7996d5366ae0808eef2acbc63f9b11b874aa42375f55379e6715845dc6
+ md5: 066552ac6b907ec6d72c0ddab29050dc
+ depends:
+ - m2w64-gcc-libs-core
+ - msys2-conda-epoch ==20160418
+ license: GPL, LGPL, FDL, custom
+ size: 350687
+ timestamp: 1608163451316
+- kind: conda
+ name: m2w64-gcc-libs
+ version: 5.3.0
+ build: '7'
+ build_number: 7
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/m2w64-gcc-libs-5.3.0-7.tar.bz2
+ sha256: 3bd1ab02b7c89a5b153a17be03b36d833f1517ff2a6a77ead7c4a808b88196aa
+ md5: fe759119b8b3bfa720b8762c6fdc35de
+ depends:
+ - m2w64-gcc-libgfortran
+ - m2w64-gcc-libs-core
+ - m2w64-gmp
+ - m2w64-libwinpthread-git
+ - msys2-conda-epoch ==20160418
+ license: GPL3+, partial:GCCRLE, partial:LGPL2+
+ size: 532390
+ timestamp: 1608163512830
+- kind: conda
+ name: m2w64-gcc-libs-core
+ version: 5.3.0
+ build: '7'
+ build_number: 7
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/m2w64-gcc-libs-core-5.3.0-7.tar.bz2
+ sha256: 58afdfe859ed2e9a9b1cc06bc408720cb2c3a6a132e59d4805b090d7574f4ee0
+ md5: 4289d80fb4d272f1f3b56cfe87ac90bd
+ depends:
+ - m2w64-gmp
+ - m2w64-libwinpthread-git
+ - msys2-conda-epoch ==20160418
+ license: GPL3+, partial:GCCRLE, partial:LGPL2+
+ size: 219240
+ timestamp: 1608163481341
+- kind: conda
+ name: m2w64-gmp
+ version: 6.1.0
+ build: '2'
+ build_number: 2
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/m2w64-gmp-6.1.0-2.tar.bz2
+ sha256: 7e3cd95f554660de45f8323fca359e904e8d203efaf07a4d311e46d611481ed1
+ md5: 53a1c73e1e3d185516d7e3af177596d9
+ depends:
+ - msys2-conda-epoch ==20160418
+ license: LGPL3
+ size: 743501
+ timestamp: 1608163782057
+- kind: conda
+ name: m2w64-libwinpthread-git
+ version: 5.0.0.4634.697f757
+ build: '2'
+ build_number: 2
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/m2w64-libwinpthread-git-5.0.0.4634.697f757-2.tar.bz2
+ sha256: f63a09b2cae7defae0480f1740015d6235f1861afa6fe2e2d3e10bd0d1314ee0
+ md5: 774130a326dee16f1ceb05cc687ee4f0
+ depends:
+ - msys2-conda-epoch ==20160418
+ license: MIT, BSD
+ size: 31928
+ timestamp: 1608166099896
+- kind: conda
+ name: msys2-conda-epoch
+ version: '20160418'
+ build: '1'
+ build_number: 1
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/msys2-conda-epoch-20160418-1.tar.bz2
+ sha256: 99358d58d778abee4dca82ad29fb58058571f19b0f86138363c260049d4ac7f1
+ md5: b0309b72560df66f71a9d5e34a5efdfa
+ size: 3227
+ timestamp: 1608166968312
+- kind: conda
+ name: openssl
+ version: 3.3.1
+ build: h4ab18f5_0
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.3.1-h4ab18f5_0.conda
+ sha256: 9691f8bd6394c5bb0b8d2f47cd1467b91bd5b1df923b69e6b517f54496ee4b50
+ md5: a41fa0e391cc9e0d6b78ac69ca047a6c
+ depends:
+ - ca-certificates
+ - libgcc-ng >=12
+ constrains:
+ - pyopenssl >=22.1
+ license: Apache-2.0
+ license_family: Apache
+ size: 2896170
+ timestamp: 1717546157673
+- kind: conda
+ name: openssl
+ version: 3.3.1
+ build: h68df207_0
+ subdir: linux-aarch64
+ url: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.3.1-h68df207_0.conda
+ sha256: 1688bf43c6ea6322ac7c1ca455712e5b64f6f524fee4c108b26c26ed7eac6f11
+ md5: dc4bb65a3f9c97b26c8f947662eea202
+ depends:
+ - ca-certificates
+ - libgcc-ng >=12
+ constrains:
+ - pyopenssl >=22.1
+ license: Apache-2.0
+ license_family: Apache
+ size: 3427371
+ timestamp: 1717546156492
+- kind: conda
+ name: typos
+ version: 1.22.7
+ build: h09b8157_0
+ subdir: linux-aarch64
+ url: https://conda.anaconda.org/conda-forge/linux-aarch64/typos-1.22.7-h09b8157_0.conda
+ sha256: df203105c159003d990fdf4814639dfa51a8ff725af59f065d7288a1e8e3cd6b
+ md5: a0e23be4b3d12fb7637e7f2a33a3a945
+ depends:
+ - libgcc-ng >=12
+ license: MIT
+ license_family: MIT
+ size: 3575256
+ timestamp: 1718216174241
+- kind: conda
+ name: typos
+ version: 1.22.7
+ build: h686f776_0
+ subdir: osx-64
+ url: https://conda.anaconda.org/conda-forge/osx-64/typos-1.22.7-h686f776_0.conda
+ sha256: cb0203305cffc52cf24481f64f4cf30dba34384245257bd443ba5ead6b09d5b3
+ md5: 9cbc5bb8f804f3e500042b985286ab60
+ depends:
+ - __osx >=10.13
+ constrains:
+ - __osx >=10.12
+ license: MIT
+ license_family: MIT
+ size: 3358158
+ timestamp: 1718216721382
+- kind: conda
+ name: typos
+ version: 1.22.7
+ build: h6e96688_0
+ subdir: osx-arm64
+ url: https://conda.anaconda.org/conda-forge/osx-arm64/typos-1.22.7-h6e96688_0.conda
+ sha256: b01ecd5d44b67738f9148add9ec7f12d9f1a4935725fc3d8841d020a7ba93f36
+ md5: 61ee622afcccb925d13da044e1c3ab26
+ depends:
+ - __osx >=11.0
+ constrains:
+ - __osx >=11.0
+ license: MIT
+ license_family: MIT
+ size: 3355631
+ timestamp: 1718216631691
+- kind: conda
+ name: typos
+ version: 1.22.7
+ build: h813c833_0
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/typos-1.22.7-h813c833_0.conda
+ sha256: d6074f6cda322f20210daf5110f22af26c5b29d4633a2136a9e24797c33119b2
+ md5: 113e466e1e990ecf8b9d5f51dfefad28
+ depends:
+ - m2w64-gcc-libs
+ - m2w64-gcc-libs-core
+ - ucrt >=10.0.20348.0
+ - vc >=14.3,<15
+ - vc14_runtime >=14.40.33810
+ license: MIT
+ license_family: MIT
+ size: 2616268
+ timestamp: 1718217545401
+- kind: conda
+ name: typos
+ version: 1.22.7
+ build: he9194b0_0
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/typos-1.22.7-he9194b0_0.conda
+ sha256: 0735920140025bd5723c205ca88a00d9fea0c39af90cb1bc027be99c9254634d
+ md5: ad4408a67c73689c5030c06c59d329ac
+ depends:
+ - libgcc-ng >=12
+ license: MIT
+ license_family: MIT
+ size: 3660740
+ timestamp: 1718216125788
+- kind: conda
+ name: typst
+ version: 0.11.1
+ build: h00d8b65_0
+ subdir: linux-aarch64
+ url: https://conda.anaconda.org/conda-forge/linux-aarch64/typst-0.11.1-h00d8b65_0.conda
+ sha256: 5b612e595a5fa502774afb5f64ab92bc7b78d12c9ec09e454c06652a1af3b8e0
+ md5: cd988af0ddd31ad1ed9eeef248aa1a4f
+ depends:
+ - libgcc-ng >=12
+ - openssl >=3.3.0,<4.0a0
+ license: Apache-2.0
+ license_family: Apache
+ size: 11328201
+ timestamp: 1716008155159
+- kind: conda
+ name: typst
+ version: 0.11.1
+ build: h3c1dd8f_0
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/typst-0.11.1-h3c1dd8f_0.conda
+ sha256: 9417e0512c7c3a6740ecd73c154573c9e0963e3ff879ab7aa74a4a7796811d60
+ md5: ae4e020c572c6e177f440b8dce321fe6
+ depends:
+ - libgcc-ng >=12
+ - openssl >=3.3.0,<4.0a0
+ license: Apache-2.0
+ license_family: Apache
+ size: 11653430
+ timestamp: 1716008198593
+- kind: conda
+ name: typst
+ version: 0.11.1
+ build: ha073cba_0
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/typst-0.11.1-ha073cba_0.conda
+ sha256: f8d1d6e2feb13bb1b532ef797b25c4239c1a56b33c027ee858f97d1d018dbec0
+ md5: 8b8c7e57c8c167f9b20c9230d40ea56b
+ depends:
+ - ucrt >=10.0.20348.0
+ - vc >=14.2,<15
+ - vc14_runtime >=14.29.30139
+ license: Apache-2.0
+ license_family: Apache
+ size: 11538744
+ timestamp: 1716009095290
+- kind: conda
+ name: typst
+ version: 0.11.1
+ build: hac6298f_0
+ subdir: osx-arm64
+ url: https://conda.anaconda.org/conda-forge/osx-arm64/typst-0.11.1-hac6298f_0.conda
+ sha256: a8b94bd38614026e43790fd240d5664000f8e0ea84a35c0f8b1a41572ff57ce5
+ md5: 2a19dcbf1ddee8d838dff3d31492297b
+ depends:
+ - __osx >=11.0
+ constrains:
+ - __osx >=11.0
+ license: Apache-2.0
+ license_family: Apache
+ size: 11149875
+ timestamp: 1716008519686
+- kind: conda
+ name: typst
+ version: 0.11.1
+ build: hdd0fa2f_0
+ subdir: osx-64
+ url: https://conda.anaconda.org/conda-forge/osx-64/typst-0.11.1-hdd0fa2f_0.conda
+ sha256: 9f505c2f95c1a841085a0591199cb94f93d8769d5634d2d7130613dbb1d2fa13
+ md5: 060774ec1c99843675b20ef8f9a9d72c
+ depends:
+ - __osx >=10.13
+ constrains:
+ - __osx >=10.12
+ license: Apache-2.0
+ license_family: Apache
+ size: 11459647
+ timestamp: 1716008214730
+- kind: conda
+ name: typstyle
+ version: 0.11.26
+ build: h09b8157_0
+ subdir: linux-aarch64
+ url: https://conda.anaconda.org/conda-forge/linux-aarch64/typstyle-0.11.26-h09b8157_0.conda
+ sha256: f03c943e140338faf2cdaad4ad67d318d7bc5ceb6ce19ae64ec0324aa0a52c19
+ md5: 5cfad4f03133e40e38c57b62c1f4033d
+ depends:
+ - libgcc-ng >=12
+ license: Apache-2.0
+ license_family: APACHE
+ size: 499069
+ timestamp: 1718311105876
+- kind: conda
+ name: typstyle
+ version: 0.11.26
+ build: h686f776_0
+ subdir: osx-64
+ url: https://conda.anaconda.org/conda-forge/osx-64/typstyle-0.11.26-h686f776_0.conda
+ sha256: 7dd647d89ac4d876ffd26246177837988e499b0b0236321a9f35673ea0595776
+ md5: b4db490887c311d2447c3ce9a9b22799
+ depends:
+ - __osx >=10.13
+ constrains:
+ - __osx >=10.12
+ license: Apache-2.0
+ license_family: APACHE
+ size: 507822
+ timestamp: 1718311160634
+- kind: conda
+ name: typstyle
+ version: 0.11.26
+ build: h6e96688_0
+ subdir: osx-arm64
+ url: https://conda.anaconda.org/conda-forge/osx-arm64/typstyle-0.11.26-h6e96688_0.conda
+ sha256: 004e01467d6b37ee10a67b14c374d829807264f18c63a0e28ecb385492b798da
+ md5: f238c027e5424f368ad0b08e1d5a9075
+ depends:
+ - __osx >=11.0
+ constrains:
+ - __osx >=11.0
+ license: Apache-2.0
+ license_family: APACHE
+ size: 485860
+ timestamp: 1718311504137
+- kind: conda
+ name: typstyle
+ version: 0.11.26
+ build: ha073cba_0
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/typstyle-0.11.26-ha073cba_0.conda
+ sha256: 44a0fa8176d32c14c98b753b7b356e4f80a44f0c3465de722a8f3fe798d02169
+ md5: a4edad6ed556d36719f1550ed90391f7
+ depends:
+ - ucrt >=10.0.20348.0
+ - vc >=14.2,<15
+ - vc14_runtime >=14.29.30139
+ license: Apache-2.0
+ license_family: APACHE
+ size: 464530
+ timestamp: 1718312088284
+- kind: conda
+ name: typstyle
+ version: 0.11.26
+ build: he9194b0_0
+ subdir: linux-64
+ url: https://conda.anaconda.org/conda-forge/linux-64/typstyle-0.11.26-he9194b0_0.conda
+ sha256: 5fd0a7120a2fb7ff19d8890619cb80847ed59a5eddc8854a26afc7f62ff4ef49
+ md5: 8039297087045c09ca9b3de0908a444d
+ depends:
+ - libgcc-ng >=12
+ license: Apache-2.0
+ license_family: APACHE
+ size: 528716
+ timestamp: 1718311022361
+- kind: conda
+ name: ucrt
+ version: 10.0.22621.0
+ build: h57928b3_0
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_0.tar.bz2
+ sha256: f29cdaf8712008f6b419b8b1a403923b00ab2504bfe0fb2ba8eb60e72d4f14c6
+ md5: 72608f6cd3e5898229c3ea16deb1ac43
+ constrains:
+ - vs2015_runtime >=14.29.30037
+ license: LicenseRef-Proprietary
+ license_family: PROPRIETARY
+ size: 1283972
+ timestamp: 1666630199266
+- kind: conda
+ name: vc
+ version: '14.3'
+ build: h8a93ad2_20
+ build_number: 20
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h8a93ad2_20.conda
+ sha256: 23ac5feb15a9adf3ab2b8c4dcd63650f8b7ae860c5ceb073e49cf71d203eddef
+ md5: 8558f367e1d7700554f7cdb823c46faf
+ depends:
+ - vc14_runtime >=14.40.33810
+ track_features:
+ - vc14
+ license: BSD-3-Clause
+ license_family: BSD
+ size: 17391
+ timestamp: 1717709040616
+- kind: conda
+ name: vc14_runtime
+ version: 14.40.33810
+ build: ha82c5b3_20
+ build_number: 20
+ subdir: win-64
+ url: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.40.33810-ha82c5b3_20.conda
+ sha256: af3cfa347e3d7c1277e9b964b0849a9a9f095bff61836cb3c3a89862fbc32e17
+ md5: e39cc4c34c53654ec939558993d9dc5b
+ depends:
+ - ucrt >=10.0.20348.0
+ constrains:
+ - vs2015_runtime 14.40.33810.* *_20
+ license: LicenseRef-ProprietaryMicrosoft
+ license_family: Proprietary
+ size: 751934
+ timestamp: 1717709031266
diff --git a/presentation/pixi.toml b/presentation/pixi.toml
new file mode 100644
index 0000000..0492e5f
--- /dev/null
+++ b/presentation/pixi.toml
@@ -0,0 +1,26 @@
+[project]
+name = "kit-slides-typst"
+version = "0.3.0"
+description = "A Karlsruhe Institute of Technology Slides Theme for Typst."
+authors = ["Adrian Freund <adrian@freund.io>"]
+channels = ["conda-forge"]
+platforms = ["linux-64", "linux-aarch64", "win-64", "osx-64", "osx-arm64"]
+
+[tasks]
+compile = {cmd = "typst compile presentation.typ", env = { TYPST_FONT_PATHS = "fonts" } }
+watch = {cmd = "typst watch presentation.typ", env = { TYPST_FONT_PATHS = "fonts" } }
+
+[dependencies]
+typst = ">=0.11.1,<0.12"
+
+[feature.lint.dependencies]
+typstyle = ">=0.11.26,<0.12"
+typos = ">=1.22.7,<1.23"
+
+[feature.lint.tasks]
+typstyle = "typstyle format-all"
+typos = "typos"
+lint = { depends-on = [ "typstyle", "typos" ] }
+
+[environments]
+lint = ["lint"]
diff --git a/presentation/presentation.typ b/presentation/presentation.typ
new file mode 100644
index 0000000..29f7442
--- /dev/null
+++ b/presentation/presentation.typ
@@ -0,0 +1,59 @@
+#import "kit-slides.typ": *
+
+#show: kit-theme.with(
+ title: [A KIT Presentation],
+ subtitle: [Created using Typst and kit-slides],
+ author: [Gero Beckmann],
+ short-title: [Gruppe 15],
+ // group-logo: image("Path to your group's logo"),
+ date: [14. Januar 2024],
+ language: "en",
+ institute: [Mobile Computing und Internet der Dinge],
+ show-page-count: false,
+)
+
+#set rect(stroke: gray)
+#set text(size: 8pt)
+
+#polylux-slide([])
+// #slide(title: [Sense the Rhythm #h(8pt)#text(fill: gray, "Flutter App")])[
+#slide()[
+ #v(-70pt)
+ #heading([Sense the Rhythm #h(8pt)#text(fill: gray, "Flutter App")])
+ Rhythm game where you have to headbang in the right direction to hit the notes.
+ #v(-10pt)
+ #grid(
+ columns: (2fr, 3fr),
+ column-gutter: 5pt,
+ [
+ #grid(
+ columns: (1fr, 1fr),
+ column-gutter: 5pt,
+ rect(image("assets/screenshot-level-selection.png")),
+ rect(image("assets/screenshot-level.png"))
+ )
+ ],
+ [
+ #set block(above: 0.4em) // Slightly reduce the block spacing, so we can fit 4 blocks on a page
+ #kit-info-block(title: image(height: 22pt, "assets/stepmania.png"))[
+ // #set text(size: 14pt)
+ - Open source rhythm game
+ - Save selected directory persistently
+ - Parser for simfiles to read note data and metadata
+ - Audio player for music
+ ]
+ #kit-example-block(title: [ESense Earable])[
+ #grid(columns: (1fr, 1fr),
+ [
+ // #set text(size: 14pt)
+ - Read gyroscope data
+ - Sum up $deg/s$ to get \ real angle
+ - Hit/Miss if angle in range
+ - Play/Pause with button
+ ],
+ [
+ #image("assets/esense.png")
+ ])
+ ]
+ ])
+]
diff --git a/pubspec.lock b/pubspec.lock
index 62488a6..1dde469 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -1,6 +1,22 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
+ archive:
+ dependency: transitive
+ description:
+ name: archive
+ sha256: "6199c74e3db4fbfbd04f66d739e72fe11c8a8957d5f219f1f4482dbde6420b5a"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.0.2"
+ args:
+ dependency: transitive
+ description:
+ name: args
+ sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.6.0"
async:
dependency: transitive
description:
@@ -81,6 +97,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.0"
+ checked_yaml:
+ dependency: transitive
+ description:
+ name: checked_yaml
+ sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.3"
+ cli_util:
+ dependency: transitive
+ description:
+ name: cli_util
+ sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.4.2"
clock:
dependency: transitive
description:
@@ -175,6 +207,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
+ flutter_launcher_icons:
+ dependency: "direct dev"
+ description:
+ name: flutter_launcher_icons
+ sha256: "31cd0885738e87c72d6f055564d37fabcdacee743b396b78c7636c169cac64f5"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.14.2"
flutter_lints:
dependency: "direct dev"
description:
@@ -217,6 +257,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.1.1"
+ image:
+ dependency: transitive
+ description:
+ name: image
+ sha256: "8346ad4b5173924b5ddddab782fc7d8a6300178c8b1dc427775405a01701c4a6"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.5.2"
+ json_annotation:
+ dependency: transitive
+ description:
+ name: json_annotation
+ sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.9.0"
leak_tracker:
dependency: transitive
description:
@@ -377,6 +433,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.2.1"
+ petitparser:
+ dependency: transitive
+ description:
+ name: petitparser
+ sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.0.2"
platform:
dependency: transitive
description:
@@ -393,6 +457,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.8"
+ posix:
+ dependency: transitive
+ description:
+ name: posix
+ sha256: a0117dc2167805aa9125b82eee515cc891819bac2f538c83646d355b16f58b9a
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.0.1"
shared_preferences:
dependency: "direct main"
description:
@@ -574,6 +646,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
+ xml:
+ dependency: transitive
+ description:
+ name: xml
+ sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.5.0"
+ yaml:
+ dependency: transitive
+ description:
+ name: yaml
+ sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.1.3"
sdks:
dart: ">=3.6.0 <4.0.0"
flutter: ">=3.24.0"
diff --git a/pubspec.yaml b/pubspec.yaml
index 77e9319..989e24a 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -25,7 +25,11 @@ dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
+ flutter_launcher_icons: ^0.14.2
+ # flutter_app_name: ^0.1.0
flutter:
uses-material-design: true
+flutter_app_name:
+ name: "Sense the Rhythm"