# License

Copyright 2025-2026 Xiaohan Tian

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this project except in compliance with the License.
You may obtain a copy of the License at:

    http://www.apache.org/licenses/LICENSE-2.0

## Additional Terms

1. **No Patent Applications**  
   You may not use this software or any included assets, in whole or in part, to file or assist in filing any patent application, whether directly or indirectly, in any jurisdiction.

2. **Attribution Requirement**  
   If you use this project in any public or commercial product, you must provide the following credit in a prominent location (such as an "About" screen or documentation):

   > Powered by **K.G.Studio**  
   > © 2025-2026 Xiaohan Tian

## Standard Terms

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.

---

## Third-Party Components

This project includes resources from the following third-party projects.  
Their original license notices **must be retained** in all copies or substantial portions of this project.

---

### 1. midi-js-soundfonts

```
Copyright (C) 2012 Benjamin Gleitzman (gleitz@mit.edu)

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.
```

---

### 2. FluidR3_GM SoundFont

```
Fluid (R3) SoundFont

Copyright (c) 2000-2002, 2008, 2013 Frank Wen <getfrank@gmail.com>

I hereby release Fluid under the MIT license, as described in COPYING.

Regardless the implications or stipulations of the MIT license, the wishes 
and intent of the author are as follows: 

1. This soundfont is provided for free, for unlimited use, and can be used 
   interchangably with other soundfonts for personal or commercial music 
   composition. 

2. In regards to bundling Fluid with software or hardware for commercial 
   purposes (freeware with paid features, or paid completely), please 
   follow these guidelines so that Fluid will not be construed as a commodity.

     -Your design must have openness for anyone to be able to load whatever 
      soundfont they want to use, and have full access to all the instruments 
      in the soundfont. 

     -You cannot lock access to Fluid by having people have to pay in order 
      to get access to more instrument banks or instrument banks associated 
      with specific tracks in the sequencer. 

     -If you are confused, please contact me.

3. If you use part of Fluid to make a new bank for public domain, document it 
   and credit me. 

4. Realistically, I cannot police or enforce what actually happens to Fluid, 
   although I believe there are honorable people who have respected my wishes 
   to keep the spirit of what I wanted the work to be, and thank all who have 
   supported and used Fluid in their musical endeavors. 


This package, of course, is the original Release 3 of Fluid.  

Fluid was constructed in part from samples found in the public domain that I
edited/cleaned/remixed/programmed and largely from recordings of my own and
in conjunction with the people below who helped along the way:

Suren M. Seron
Scott Hanan
Steve Aupperle
Chris Gillman
Alex Taubr
Chris Prola
Andrew Klenk
Winfried Hubbe 
Dylan
Tim
Gort
Uros Katic 
Ethan Winer (http://www.ethanwiner.com) 

I'd also like to thank Alexander Ryan, Dan Reagan, and Thomas Hammer for 
hosting the project for so many years. Without them, distribution would have 
been impossible.

And also Tobe Smithe, for bringing this to more people through Ubuntu.

It's obviously been a few years since the project, but its nice to see that
people are still enjoying my work and getting good use out of it.  As always,
I'd like to hear some work done with Fluid so email me, or just email me to
say hello and tell me what is going on in the computer musician world.
Who knows, maybe I'll kick start this project again? ;)
```

---

### 3. VexFlow

```
VexFlow - A JavaScript library for rendering music notation.
Copyright (c) 2010 Mohit Muthanna Cheppudira

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.
```

---

### 4. System Prompt Structure (based on Cline)

Portions of the system prompt structure are derived from the Cline project,
licensed under the Apache License, Version 2.0.

Original project: [Cline](https://github.com/cline/cline)

Modifications: Substantial textual and functional changes have been made; only the general content structure remains.

---

### 5. Gemma 4 E4B (LiteRT-LM)

This project uses the Gemma 4 E4B model by Google LLC, accessed via LiteRT-LM.
Gemma is licensed under the Apache License, Version 2.0, subject to the
Google Gemma Terms of Use.

Original model: https://huggingface.co/google/gemma-4-E4B-it
Gemma Terms of Use: https://ai.google.dev/gemma/terms
Prohibited Use Policy: https://ai.google.dev/gemma/prohibited_use_policy

Gemma is provided under and subject to the Gemma Terms of Use found at
ai.google.dev/gemma/terms.

Copyright 2025 Google LLC

---

### 6. UVR-MDX-NET-Inst_HQ_3

This project uses the UVR-MDX-NET-Inst_HQ_3 model from the Ultimate Vocal
Remover (UVR) project, distributed as an ONNX model via
https://huggingface.co/notabilia/uvr5-models.

Ultimate Vocal Remover — https://github.com/Anjok07/ultimatevocalremovergui
Authors: Anjok07, KimberleyJSN, and the UVR development community

MDX-NET architecture — https://github.com/kuielab/mdx-net
Authors: Woosung Choi, Minseok Kim, Jaehwa Chung, Daewon Lee, Soonyoung Jung (KUIELab)

```
MIT License

Copyright (c) Anjok07, KimberleyJSN, and the UVR contributors

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.
```

---

### 7. MediaPipe / LiteRT (GenAI runtime)

This project bundles the MediaPipe GenAI WebAssembly runtime
(`genai_bundle.mjs`, `genai_wasm_internal.js/wasm`,
`genai_wasm_module_internal.js/wasm`) from Google's MediaPipe project.

MediaPipe is licensed under the Apache License, Version 2.0.

Original project: https://github.com/google-ai-edge/mediapipe
Copyright 2019 The MediaPipe Authors

---

Apache License Version 2.0, January 2004: http://www.apache.org/licenses/LICENSE-2.0