PlayIt: a practice player for musicians
Copyright (C) 2026 Andrija Petrovic

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.

You should have received a copy of the GNU General Public License along with
this program: the file LICENSE. If not, see <https://www.gnu.org/licenses/>.

In SPDX terms: GPL-3.0-or-later.


WHERE THE SOURCE IS

Every release is published at https://playit.888.rs together with its
complete source, playit-<version>-source.tar.gz, made from the very commit
the downloads were built from; the page and latest.json name that commit.
To ask for the source of a copy you have, or anything else about the
licence: playit@888.rs.


WHAT THIS COVERS

Everything in this repository: the app (player/), the analysis library
(analysis/), the reference analyzer (analyzer/), the tools, the download
page, the documents and the icon. The files that are program text say so at
their top (tools/licence_headers.py keeps those lines). The exceptions:

1. Code ported from librosa, SciPy and Basic Pitch. Parts of these files
   are Rust ports of librosa (ISC License) and SciPy (BSD-3-Clause)
   routines, and of Spotify's Basic Pitch (Apache License 2.0; its
   constant-Q layer is nnAudio's, MIT). Each carries the upstream copyright
   notice and licence text at its top (for Basic Pitch: its notice and
   NOTICE file; the text of the Apache License is
   site/third-party/Apache-2.0.txt); the file as a whole is
   GPL-3.0-or-later.

       analysis/src/beat.rs       librosa
       analysis/src/cqt.rs        librosa
       analysis/src/hpss.rs       librosa
       analysis/src/onset.rs      librosa
       analysis/src/pyin.rs       librosa
       analysis/src/stft.rs       librosa
       analysis/src/tuning.rs     librosa
       analysis/src/bass.rs       librosa, SciPy
       analysis/src/tab_contour.rs  librosa
       analysis/src/tab_model.rs    Basic Pitch
       analysis/src/tab_notes.rs    Basic Pitch

   With them, the weights of Basic Pitch's note model:
   analysis/model/nmp.weights holds the numbers of the model file
   basic_pitch/saved_models/icassp_2022/nmp.onnx of basic-pitch 0.4.0
   (SHA-256 2c3c1d144bfa61ad236e92e169c13535c880469a12a047d4e73451f2c059a0ec),
   unchanged, in a file format of PlayIt's own. That file is Copyright 2022
   Spotify AB under the Apache License 2.0, not GPL; the script that writes
   it, analysis/model/nmp_weights.py, is PlayIt's.

2. The Flutter application template. `flutter create` wrote the platform
   folders player/linux/, player/windows/ and player/android/ (their build
   files, manifests and the runner programs). Those files are Copyright 2014
   The Flutter Authors under the BSD-3-Clause licence below. Unchanged, or
   changed only in a name:

       player/linux/runner/main.cc
       player/linux/runner/my_application.h
       player/windows/runner/flutter_window.cpp
       player/windows/runner/flutter_window.h
       player/windows/runner/main.cpp
       player/windows/runner/resource.h
       player/windows/runner/utils.cpp
       player/windows/runner/utils.h
       player/windows/runner/win32_window.cpp
       player/windows/runner/win32_window.h

   and the CMake, Gradle, manifest and resource files beside them that carry
   no note. Changed for PlayIt, with a note at the top saying what; the
   changes are GPL-3.0-or-later, the rest stays BSD-3-Clause:

       player/linux/runner/my_application.cc
       player/linux/CMakeLists.txt
       player/windows/runner/Runner.rc
       player/android/app/build.gradle.kts

   Written for PlayIt, and not from the template: the icons, the Linux
   packaging files (player/linux/packaging/) and MainActivity.kt.

3. Generated code. player/lib/src/rust/ and player/rust/src/frb_generated.rs
   are written by flutter_rust_bridge's code generator (MIT) from
   player/rust/src/api/; the generated_plugin_registrant and
   generated_plugins files by Flutter. They carry no notice of ours.

4. Other people's licence texts in site/third-party/, and this LICENSE,
   which are their authors'.

5. The AppStream description (player/linux/packaging/
   rs.hers.playit.metainfo.xml.in) declares its own text CC0-1.0, as
   AppStream asks; it describes a GPL-3.0-or-later program.

6. A package of the media_kit project, player/third_party/
   media_kit_libs_android_audio/: Copyright (c) 2021 & onwards, Hitesh
   Kumar Saini, MIT, with its licence text beside it. One file of it is
   changed for PlayIt, android/build.gradle, which says so at its top; the
   changes are GPL-3.0-or-later.

7. The patches in tools/android-libmpv/patches/. They change files of the
   media_kit project's build scripts (MIT) and, in one case, of FFmpeg
   (LGPL-2.1-or-later: a patch of media_kit's, moved to a newer FFmpeg), and
   are offered under the licence of the file each one changes. The rest of
   tools/android-libmpv/ is PlayIt's, GPL-3.0-or-later.

What a release contains besides this (the Flutter engine, the Rust crates,
and on Android libmpv with FFmpeg, which PlayIt builds from other people's
sources) is listed, with licence texts and with
where the source of each is, in the third-party notices that go out with
every release (tools/third_party_notices.py).

The copyright holder can also license PlayIt under other terms. That is why
contributions are taken only under an agreement: see CONTRIBUTING.md.


THE FLUTTER TEMPLATE'S LICENCE (BSD-3-Clause)

Copyright 2014 The Flutter Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.
    * Neither the name of Google Inc. nor the names of its
      contributors may be used to endorse or promote products derived
      from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
