Faust 2.85.5: component licenses and additional permissions
========================================================

The compiler is LGPL-2.1-or-later. This package also distributes libraries,
headers, architecture templates, scripts, examples and documentation under
other terms. The package's multiple-license declaration describes these
components together; it does not relicense them or apply every listed
license to every component or to all code generated by Faust.

Original copyright notices and per-file license declarations remain in the
installed files. The excerpts below preserve additional permissions and
notices that the standard license texts alone do not convey. Paths below
refer to the unmodified upstream 2.85.5 source archive.

Component map
-------------
COPYING.txt; compiler/main.cpp: LGPL-2.1-or-later.
compiler/interval/: Apache-2.0.
compiler/parser/faustparser.{cpp,hpp}: GPL-2.0-or-later with Bison exception.
compiler/generator/sha_key.hh: public domain.
architecture/httpdlib/: LGPL-2.1-or-later.
architecture/osclib/faust/: LGPL-2.1-or-later; older OSC source files use
  LGPL-2.0-or-later (GNU Library General Public License).
architecture/osclib/oscpack/: MIT, including its nonbinding upstream request.
architecture/faust/gui/qrcodegen*.h; architecture/faust/midi/RtMidi.cpp: MIT.
architecture/faust/midi/RtMidi.h; architecture/AU/: Apple sample code terms.
architecture/faust/au/AUUI.h; architecture/vst.cpp: BSD-3-Clause.
architecture/svgplot/{plot,heatmap}.h: 0BSD.
architecture/faust/miniaudio.h: Unlicense (chosen alternative); embedded
  Tonic noise and MurmurHash3 portions are also identified as public domain.
architecture/wwise/: Apache-2.0 (chosen alternative for Wwise scaffolding).
architecture/esp32/drivers/es8388/: custom Espressif terms, including the
  restriction to use on Espressif Systems products; not ordinary MIT.
architecture/jax/minimal.py; architecture/julia/{audio,gui,dsp}/:
  permissive Faust sample architecture terms.
architecture/lv2{,ui}.cpp: LGPL-3.0-or-later.
architecture/octave.cpp; tools/faust2appls/faust2sc: GPL-2.0-or-later.
architecture/esp32/drivers/ac101/: GPL-3.0-or-later.
Other Faust architecture files carry GPL-2.0-or-later, GPL-3.0-or-later,
  LGPL-2.1-or-later or LGPL-3.0-or-later, often with the architecture
  exception quoted below. Consult each file's notice.
architecture/max-msp/sndfile/: bundled libsndfile is LGPL-2.1-or-later.
syntax-highlighting/faust.lang: LGPL-2.0-or-later.
libraries/*.lib: LGPL-2.1-or-later with the output exception below, except
  where more specific per-function notices apply, including:
  basics.lib tabulateNd: AGPL-3.0-only.
  compressors.lib ratio2strength and other Bart Brouns functions: GPL-3.0.
  reverbs.lib: GPL-3.0 and GPL-3.0-or-later sections.
  interpolators.lib frdtable/frwtable: LGPL-3.0.
  demos.lib: GPL-2.0-or-later sections.
  vaeffects.lib klonCentaur: BSD-3-Clause.
  filters.lib: ISC, MIT and STK-derived sections.
  quantizers.lib: Unlicense.
  Other individual functions declare MIT or STK-derived terms.
  Some embedded documentation declares CC-BY-4.0, with the upstream
  qualifier preserved below.
examples/: preserve the per-example terms, including GPL-2.0-or-later,
  GPL-3.0, MIT/STK, and a generic BSD declaration in old/freeverb.dsp.

Standard texts absent from the archive were obtained from:
  https://www.apache.org/licenses/LICENSE-2.0.txt
  https://creativecommons.org/licenses/by/4.0/legalcode.txt
  https://opensource.org/license/0bsd
The remaining standard GNU/BSD texts come from the mports license store.
Custom license files contain verbatim upstream notices, retaining comment
prefixes where present. Standard identifiers do not replace the additional
permissions below or the custom Apple, Espressif and sample-code terms.

Faust architecture exception (representative LGPL header)
---------------------------------------------------------
Source: architecture/faust/gui/UI.h:1-23

/************************** BEGIN UI.h *****************************
 FAUST Architecture File
 Copyright (C) 2003-2022 GRAME, Centre National de Creation Musicale
 ---------------------------------------------------------------------
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
 the Free Software Foundation; either version 2.1 of the License, or
 (at your option) any later version.

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

 You should have received a copy of the GNU Lesser General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

 EXCEPTION : As a special exception, you may create a larger work
 that contains this FAUST architecture section and distribute
 that work under terms of your choice, so long as this FAUST
 architecture section is not modified.
 ********************************************************************/

Faust DSP-library output exception
----------------------------------
Source: libraries/delays.lib:19-49

/************************************************************************
************************************************************************
FAUST library file
Copyright (C) 2003-2016 GRAME, Centre National de Creation Musicale
----------------------------------------------------------------------
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.

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

You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.

EXCEPTION TO THE LGPL LICENSE : As a special exception, you may create a
larger FAUST program which directly or indirectly imports this library
file and still distribute the compiled code generated by the FAUST
compiler, or a modified version of this compiled code, under your own
copyright and license. This EXCEPTION TO THE LGPL LICENSE explicitly
grants you the right to freely choose the license for the resulting
compiled code. In particular the resulting compiled code has no obligation
to be LGPL or GPL. For example you are free to choose a commercial or
closed source license or any other license if you decide so.
************************************************************************
************************************************************************/

Bison parser skeleton notice and exception
------------------------------------------
Source: compiler/parser/faustparser.cpp:1-34

/* A Bison parser, made by GNU Bison 2.3.  */

/* Skeleton implementation for Bison's Yacc-like parsers in C

   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
   Free Software Foundation, Inc.

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

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

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

Compiled interval-code notice
-----------------------------
Source: compiler/interval/intervalFloatNum.cpp:1-14

/* Copyright 2023 Yann ORLAREY
 *
 * 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.
 */

Compiled SHA-1 public-domain notice
-----------------------------------
Source: compiler/generator/sha_key.hh:29-33

/*
 SHA-1 in C (see: https://github.com/clibs/sha1/blob/master/sha1.h)
 By Steve Reid <steve@edmweb.com>
 100% Public Domain
 */

STK-derived code license and nonbinding request
-----------------------------------------------
Source: libraries/licenses/stk-4.3.0.md:1-41

# STK 4.3.0 License

The Synthesis ToolKit in C++ (STK) is a set of open source audio
signal processing and algorithmic synthesis classes written in the
C++ programming language. STK was designed to facilitate rapid
development of music synthesis and audio processing software, with
an emphasis on cross-platform functionality, realtime control,
ease of use, and educational example code.  STK currently runs
with realtime support (audio and MIDI) on Linux, Macintosh OS X,
and Windows computer platforms. Generic, non-realtime support has
been tested under NeXTStep, Sun, and other platforms and should
work with any standard C++ compiler.

STK WWW site: http://ccrma.stanford.edu/software/stk/

The Synthesis ToolKit in C++ (STK)
Copyright (c) 1995--2017 Perry R. Cook and Gary P. Scavone

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.

Any person wishing to distribute modifications to the Software is
asked to send the modifications to the original developer so that they
can be incorporated into the canonical version.  This is, however, not
a binding provision of this license.

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.

Documentation declaration including upstream qualifier
------------------------------------------------------
Source: libraries/reverbs.lib:39-49

/************************************************************************
FAUST library file, jos section

Except where noted otherwise, The Faust functions below in this
section are Copyright (C) 2003-2017 by Julius O. Smith III <jos@ccrma.stanford.edu>
([jos](http://ccrma.stanford.edu/~jos/)), and released under the
(MIT-style) [STK-4.3](#stk-4.3-license) license.

All MarkDown comments in this section are Copyright 2016-2017 by Romain
Michon and Julius O. Smith III, and are released under the
[CCA4I](https://creativecommons.org/licenses/by/4.0/) license (TODO: if/when Romain agrees!)

AGPL function declaration
-------------------------
Source: libraries/basics.lib:1860-1862

declare tabulateNd author "Bart Brouns";
declare tabulateNd copyright "Copyright (C) 2023 Bart Brouns <bart@magnetophon.nl>";
declare tabulateNd license "AGPL-3.0";

ISC function attribution
------------------------
Source: libraries/filters.lib:4379-4386

// #### References
//
// * <https://www.itu.int/rec/R-REC-BS.1770>
// * <https://gist.github.com/jkbd/07521a98f7873a2dc3dbe16417930791>
//-----------------------------------------------------------------------------
declare itu_r_bs_1770_4_kfilter author "Jakob Dübel";
declare itu_r_bs_1770_4_kfilter copyright "Copyright (C) 2022 Jakob Dübel";
declare itu_r_bs_1770_4_kfilter license "ISC license";

Generic BSD example declaration
-------------------------------
Source: examples/old/freeverb.dsp:3-8

declare name        "freeverb";
declare version     "1.0";
declare author      "Grame";
declare license     "BSD";
declare copyright   "(c) GRAME 2006";
declare reference   "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html";

Bundled libsndfile notice
------------------------
Source: architecture/max-msp/sndfile/sndfile.h:1-17

/*
** Copyright (C) 1999-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation; either version 2.1 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
