Full Code of acids-ircam/nn_tilde for AI

master ca97f8259442 cached
107 files
2.9 MB
764.5k tokens
320 symbols
1 requests
Download .txt
Showing preview only (3,057K chars total). Download the full file or copy to clipboard to get everything.
Repository: acids-ircam/nn_tilde
Branch: master
Commit: ca97f8259442
Files: 107
Total size: 2.9 MB

Directory structure:
gitextract_nq2axijl/

├── .github/
│   └── workflows/
│       ├── build.yaml
│       └── python-publish.yaml
├── .gitignore
├── .gitmodules
├── LICENSE
├── MANIFEST.in
├── README.md
├── docs/
│   └── index.md
├── extras/
│   ├── 01_nn_attributes.maxpat
│   └── generate_test_model.py
├── install/
│   ├── MaxAPI.lib
│   ├── dylib_fix.py
│   ├── macos_max_makeub.sh
│   ├── macos_pd_makeub.sh
│   ├── max-linker-flags.txt
│   ├── mkl.cmake
│   └── patch_with_vst.sh
├── package-info.json.in
├── python_tools/
│   ├── __init__.py
│   ├── buffer.py
│   ├── codegen.py
│   ├── module.py
│   ├── templates/
│   │   ├── __init__.py
│   │   ├── attributes.py
│   │   └── buffers.py
│   └── test/
│       ├── test_attributes.maxpat
│       ├── test_attributes.py
│       ├── test_buffers.py
│       ├── test_list_attributes.maxpat
│       └── utils.py
├── requirements.txt
├── requirements_darwin_x64.txt
├── scripting/
│   ├── README.md
│   ├── effects.py
│   ├── effects.ts
│   ├── features.py
│   ├── features.ts
│   ├── scripting.maxpat
│   └── unmix.py
├── setup.py
└── src/
    ├── .nojekyll
    ├── CMakeLists.txt
    ├── backend/
    │   ├── CMakeLists.txt
    │   ├── backend.cpp
    │   ├── backend.h
    │   ├── parsing_utils.cpp
    │   └── parsing_utils.h
    ├── cmake/
    │   └── add_torch.cmake
    ├── extras/
    │   ├── nn~ Overview.maxpat
    │   └── patch_with_vst.sh
    ├── frontend/
    │   ├── maxmsp/
    │   │   ├── mc.nn_tilde/
    │   │   │   ├── CMakeLists.txt
    │   │   │   └── mc.nn_tilde.cpp
    │   │   ├── mcs.nn_tilde/
    │   │   │   ├── CMakeLists.txt
    │   │   │   └── mcs.nn_tilde.cpp
    │   │   ├── nn.info/
    │   │   │   ├── CMakeLists.txt
    │   │   │   └── nn.info.cpp
    │   │   ├── nn_tilde/
    │   │   │   ├── CMakeLists.txt
    │   │   │   ├── nn_tilde.cpp
    │   │   │   ├── nn_tilde_test.cpp
    │   │   │   └── nn~.maxhelp
    │   │   └── shared/
    │   │       ├── array_tools.h
    │   │       ├── buffer_tools.h
    │   │       ├── dict_utils.h
    │   │       ├── max_model_download.h
    │   │       └── nn_base.h
    │   └── puredata/
    │       ├── nn_tilde/
    │       │   ├── CMakeLists.txt
    │       │   ├── nn_tilde.cpp
    │       │   └── nn~-help.pd
    │       └── shared/
    │           ├── pd_buffer_manager.h
    │           └── pd_model_download.h
    ├── help/
    │   ├── mc.nn~.maxhelp
    │   ├── mcs.nn~.maxhelp
    │   ├── nn.info.maxhelp
    │   └── nn~.maxhelp
    ├── models/
    │   ├── demo_attributes.ts
    │   ├── demo_buffers.ts
    │   ├── demo_mc.ts
    │   ├── effects.ts
    │   ├── features.ts
    │   └── wavetable.ts
    ├── patchers/
    │   ├── after_help.maxpat
    │   ├── help_hub.maxpat
    │   ├── latent_remote/
    │   │   ├── M4L.latent_remote.js
    │   │   ├── M4L.latent_remote.maxhelp
    │   │   ├── M4L.latent_remote.maxpat
    │   │   ├── M4L.latent_slider.maxhelp
    │   │   ├── M4L.latent_slider.maxpat
    │   │   ├── M4L.latent_slider_component.maxpat
    │   │   ├── frand.maxpat
    │   │   ├── ierf.gendsp
    │   │   ├── latent_remote.js
    │   │   ├── latent_remote.maxhelp
    │   │   ├── latent_remote.maxpat
    │   │   ├── latent_slider.maxhelp
    │   │   ├── latent_slider.maxpat
    │   │   └── latent_slider_component.maxpat
    │   ├── rave_help.maxpat
    │   ├── ts_help.maxpat
    │   └── vschaos_help.maxpat
    ├── shared/
    │   ├── circular_buffer.h
    │   ├── model_download.h
    │   └── static_buffer.h
    └── source/
        ├── attributes.py
        ├── buffers.py
        ├── effects.py
        ├── features.py
        └── unmix.py

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/workflows/build.yaml
================================================
name: Build nn_tilde
on:
  push:
    tags:
      - "v*"

jobs:
  osx-arm64-build:
    runs-on: macos-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - run: | 
          git submodule update --init --recursive
          git fetch --tags
          curl -L  ${{ secrets.WHEEL_PATH }} -o src/models/wheel.ts
          du -sh src/models/*
      - name: Setup LLVM
        run: |
          brew install llvm 
      - name: Setup miniconda
        run: |
          curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh > miniconda.sh
          chmod +x ./miniconda.sh
          bash ./miniconda.sh -b -u -p ./env
          source ./env/bin/activate
          conda install python=3.11
      - name: Installing torch and requirements
        run: |
          source ./env/bin/activate
          conda install -c conda-forge curl
          pip install -r requirements.txt
      - name: Setup puredata
        run: |
          mkdir puredata_include
          curl -L https://raw.githubusercontent.com/pure-data/pure-data/master/src/m_pd.h -o ${{ github.workspace }}/puredata_include/m_pd.h
          cat ${{ github.workspace }}/puredata_include/m_pd.h
      - name: Build
        run: |
          mkdir build
          export CC=$(brew --prefix llvm)/bin/clang
          export CXX=$(brew --prefix llvm)/bin/clang++
          export SIGN_ID=${{ secrets.SIGN_ID }}
          cd build
          cmake ../src -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DTORCH_MAC_UB_URL=${{ secrets.TORCH_UB_PATH }} -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64
          make
      - name: Max/MSP Package creation
        run: |
          mkdir nn_tilde
          mkdir nn_tilde/help
          mv src/externals src/help src/support src/patchers src/extras src/package-info.json src/icon.png src/source src/models src/misc nn_tilde
          tar -czvf nn_max_msp_macOS_arm64.tar.gz nn_tilde
      - name: PureData Package creation
        run: |
          rm -fr nn_tilde
          mv build/frontend/puredata/nn_tilde .
          mv src/frontend/puredata/nn_tilde/nn~-help.pd nn_tilde
          rm -fr nn_tilde/CMakeFiles/ nn_tilde/*.cmake nn_tilde/Makefile
          tar -czvf nn_puredata_macOS_arm64.tar.gz nn_tilde
      - name: Upload binaries
        uses: actions/upload-artifact@v4
        with:
          name: nn_tilde_mac_arm64
          path: |
            nn_max_msp_macOS_arm64.tar.gz
            nn_puredata_macOS_arm64.tar.gz

  osx-x64-build:
    runs-on: macos-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - uses: actions/setup-python@v5
        with:
          python-version: "3.11"
      - run: | 
          git submodule update --init --recursive
          git fetch --tags
          git describe --tags --always
          curl -L  ${{ secrets.WHEEL_PATH }} -o src/models/wheel.ts

      - name: Install x86_64 Homebrew
        run: |
          sudo rm -rf /opt/homebrew
          sudo rm -rf /usr/local/homebrew
          sudo mkdir -p /usr/local/homebrew
          sudo chown -R $(whoami) /usr/local/homebrew
          arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" --prefix=/usr/local/homebrew
          arch -x86_64 /usr/local/bin/brew shellenv >> $GITHUB_ENV

      - name: Downloading wheels & libtorch for x64
        run: |
          curl -L ${{ secrets.TORCH_WHEEL }} > torch-2.5.1-cp313-cp313-macosx_14_0_x86_64.whl
          curl -L ${{ secrets.TORCH_UB_PATH }} > torch_ub.zip
          mkdir torch 
          unzip torch_ub.zip -d torch
          mv torch/torch torch/libtorch

      - name: Installing miniconda and dependencies...
        run: |
          ls 
          curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > miniconda.sh
          chmod 777 ./miniconda.sh
          bash ./miniconda.sh -b -u -p ./env
          source ./env/bin/activate

      - name: Installing torch
        run : |
          source ./env/bin/activate
          export DYLD_LIBRARY_PATH=${{ github.workspace }}/torch/lib:$DYLD_LIBRARY_PATH
          arch -x86_64 conda install -c conda-forge cmake ninja numpy setuptools mkl mkl-include typing_extensions protobuf
          arch -x86_64 pip install ./torch-2.5.1-cp313-cp313-macosx_14_0_x86_64.whl
          arch -x86_64 pip install cached_conv>=2.5.0
          arch -x86_64 pip install cmake==3.28
          arch -x86_64 conda install -c conda-forge curl
          TARGET_DIR=$(find env/lib -type d -name "python3*")
          TARGET_DIR="${TARGET_DIR}/site-packages/torch/share/cmake/Caffe2/public"
          cp install/mkl.cmake "${TARGET_DIR}"  

      - name: Setup LLVM
        run: |
          rm '/usr/local/bin/pydoc3'
          rm /usr/local/bin/pydoc3.13
          rm /usr/local/bin/python3
          rm /usr/local/bin/python3-config
          rm /usr/local/bin/python3.13
          rm /usr/local/bin/python3.13-config
          rm '/usr/local/bin/pip3.13'
          rm '/usr/local/bin/idle3'
          rm '/usr/local/bin/idle3.13'
          arch -x86_64 /usr/local/bin/brew install llvm
          export LDFLAGS="-L/usr/local/opt/llvm/lib"
          export CPPFLAGS="-I/usr/local/opt/llvm/include"

      - name: Setup puredata
        run: |
          mkdir puredata_include
          curl -L https://raw.githubusercontent.com/pure-data/pure-data/master/src/m_pd.h -o puredata_include/m_pd.h

      - name: Build
        run: |
          mkdir build
          export CC=$(/usr/local/bin/brew --prefix llvm)/bin/clang
          export CXX=$(/usr/local/bin/brew --prefix llvm)/bin/clang++
          export SIGN_ID=${{ secrets.SIGN_ID }}
          cd build
          arch -x86_64 ../env/bin/cmake ../src -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_BUILD_TYPE=Release -DPUREDATA_INCLUDE_DIR=${{ github.workspace }}/puredata_include -DCMAKE_OSX_ARCHITECTURES=x86_64
          arch -x86_64 make
      - name: Max/MSP Package creation
        run: |
          mkdir nn_tilde
          mkdir nn_tilde/help
          mv src/externals src/help src/support src/patchers src/extras src/package-info.json src/icon.png src/source src/models src/misc nn_tilde
          tar -czvf nn_max_msp_macOS_x64.tar.gz nn_tilde
      - name: PureData Package creation
        run: |
          rm -fr nn_tilde
          mv build/frontend/puredata/nn_tilde .
          mv src/frontend/puredata/nn_tilde/nn~-help.pd nn_tilde
          rm -fr nn_tilde/CMakeFiles/ nn_tilde/*.cmake nn_tilde/Makefile
            tar -czvf nn_puredata_macOS_x64.tar.gz nn_tilde
      - name: Upload binaries
        uses: actions/upload-artifact@v4
        with:
          name: nn_tilde_mac_x86_64
          path: |
            nn_max_msp_macOS_x64.tar.gz
            nn_puredata_macOS_x64.tar.gz

  linux:
    runs-on: ${{ matrix.runs-on }}
    strategy:
      matrix:
        arch: [amd64]
        include:
          - arch: amd64
            runs-on: ubuntu-latest
            artifact-name: nn_linux_puredata_x86_64
            conda-url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - run: | 
          git submodule update --init --recursive
          git fetch --tags
          GIT_TRACE=1 git describe --tags --always
      - name: Setup LLVM
        run: |
          sudo apt-get install -y ca-certificates
          sudo apt install gcc-10 g++-10
      - name: Setup miniconda
        run: |
          echo "architecture : $(uname -m)"
          curl --cacert /etc/ssl/certs/ca-certificates.crt -L ${{ matrix.conda-url }} > miniconda.sh
          chmod +x ./miniconda.sh
          bash ./miniconda.sh -b -u -p ./env
          source ./env/bin/activate
          conda install python=3.11
          pip3 install torch --index-url https://download.pytorch.org/whl/cpu
          conda install -c conda-forge curl
          # conda install -c pytorch torch==2.5.1 torchaudio==2.5.1
          # pip install -r requirements.txt
      - name: Setup puredata
        run: |
          mkdir puredata_include
          curl --cacert /etc/ssl/certs/ca-certificates.crt -L https://raw.githubusercontent.com/pure-data/pure-data/master/src/m_pd.h -o puredata_include/m_pd.h
      - name: Build
        run: |
          mkdir build
          export CC=$(which gcc-10)
          export CXX=$(which g++-10)
          cd build
          cmake ../src -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_PREFIX_PATH=${{ github.workspace }}/env/lib/python3.12/site-packages/torch -DCMAKE_BUILD_TYPE=Release -DPUREDATA_INCLUDE_DIR=${{ github.workspace }}/puredata_include
          make
      - name: PureData Package creation
        run: |
          mkdir nn_tilde
          mv build/frontend/puredata/nn_tilde .
          mv src/frontend/puredata/nn_tilde/nn~-help.pd nn_tilde
          rm -fr nn_tilde/CMakeFiles/ nn_tilde/*.cmake nn_tilde/Makefile
          tar -czvf ${{ matrix.artifact-name }}.tar.gz nn_tilde
      - name: Upload binaries
        uses: actions/upload-artifact@v4
        with:
          name: ${{ matrix.artifact-name }}
          path: 
            ${{ matrix.artifact-name }}.tar.gz

            
  windows-x64-build:
    runs-on: windows-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - run: | 
          git submodule update --init --recursive
          git fetch --tags
          curl -L  ${{ secrets.WHEEL_PATH }} -o src/models/wheel.ts
      - name: Setup puredata
        run: |
          mkdir pd
          cd pd
          curl -L https://msp.ucsd.edu/Software/pd-0.55-2.msw.zip -o pd.zip
          unzip pd.zip
          mv pd*/src .
          mv pd*/bin .
          cd ..
      - name: Installing dependencies with vcpkg
        run: |
          git clone https://github.com/microsoft/vcpkg.git
          cd vcpkg 
          ./bootstrap-vcpkg.bat
          ./vcpkg.exe integrate install
          ./vcpkg.exe install curl
          cd ..

      - name: Build
        run: |
          mkdir build
          cd build
          cmake ../src -G "Visual Studio 17 2022" -DPUREDATA_INCLUDE_DIR=${{ github.workspace }}/pd/src -DPUREDATA_BIN_DIR=${{ github.workspace }}/pd/bin -A x64
          cmake --build . --config Release
          
      - name: Max/MSP Package creation
        run: |
          mkdir nn_tilde
          mkdir nn_tilde/support
          ls
          cp torch/libtorch/lib/* nn_tilde/support
          cp vcpkg/installed/x64-windows/lib/*.lib nn_tilde/support
          cp vcpkg/installed/x64-windows/bin/*.dll nn_tilde/support
          curl -L https://curl.se/ca/cacert.pem -o nn_tilde/support/cacert.pem
          $files = @("src\externals", "src\help", "src\patchers", "src\extras", "src\package-info.json", "src\icon.png", "src\source", "src\models", "src\misc")
          foreach ($file in $files) {
            mv $file nn_tilde
          }
          curl -L https://nubo.ircam.fr/index.php/s/7xBPxJZA6nJFHkG -o ${{ secrets.WHEEL_PATH }}
          tar -czvf nn_max_msp_windows_x64.tar.gz nn_tilde
      - name: PureData Package creation
        run: |
          Remove-Item -Recurse -Force nn_tilde
          mkdir nn_tilde
          mv build/frontend/puredata/nn_tilde/Release/* nn_tilde/
          cp torch/libtorch/lib/* nn_tilde/
          cp vcpkg/installed/x64-windows/lib/*.lib nn_tilde/
          cp vcpkg/installed/x64-windows/bin/*.dll nn_tilde/
          curl -L https://curl.se/ca/cacert.pem -o nn_tilde/cacert.pem
          tar -czvf nn_puredata_windows_x64.tar.gz nn_tilde
      - name: Upload binaries
        uses: actions/upload-artifact@v4
        with:
          name: nn_tilde_win_x64
          path: |
            nn_max_msp_windows_x64.tar.gz
            nn_puredata_windows_x64.tar.gz

  MakeMaxUniversalForMac:
    runs-on: macos-latest
    needs: [osx-arm64-build, osx-x64-build]
    steps:
      - name: Download build binaries (arm64)
        uses: actions/download-artifact@v4
        with:
          name: nn_tilde_mac_arm64
      - name: Download build binaries (x86)
        uses: actions/download-artifact@v4
        with:
          name: nn_tilde_mac_x86_64
      - name: Build ub max with lipo
        run: |
          tar -xvf nn_max_msp_macOS_arm64.tar.gz 
          mv nn_tilde nn_tilde_arm64
          tar -xvf nn_max_msp_macOS_x64.tar.gz 
          mv nn_tilde nn_tilde_x64
          curl -L https://raw.githubusercontent.com/domkirke/nn_tilde/refs/heads/dev/install/macos_max_makeub.sh > macos_max_makeub.sh
          chmod 777 ./macos_max_makeub.sh
          ./macos_max_makeub.sh
          
      - name: Install signing certificate
        run: |
          CERT_PATH="$RUNNER_TEMP/signing-identity.p12"
          echo "${{ secrets.CERT }}" | base64 -D > $CERT_PATH
          security create-keychain -p "" build.keychain
          security default-keychain -s build.keychain
          security unlock-keychain -p "" build.keychain
          security import $CERT_PATH -k build.keychain -P "${{ secrets.CERT_PASSWORD }}" -T /usr/bin/codesign
          security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
          codesign --deep --force --sign ${{ secrets.SIGN_ID }} nn_tilde/support/*.dylib
          for i in $(find nn_tilde/externals/*/Contents/MacOS -type f -perm -111); do codesign --deep --force --sign ${{ secrets.SIGN_ID }} nn_tilde/externals/$(basename $i).mxo/Contents/MacOS/$(basename $i); done

      - name: Compressing...
        run: tar -czvf nn_max_msp_macos_ub.tar.gz nn_tilde

      - name: Upload UB 
        uses: actions/upload-artifact@v4
        with:
          name: nn_tilde_macos_max_ub
          path: |
            nn_max_msp_macos_ub.tar.gz

  MakePdUniversalForMac:
    runs-on: macos-latest
    needs: [osx-arm64-build, osx-x64-build]
    steps:
      - name: Download build binaries (arm64)
        uses: actions/download-artifact@v4
        with:
          name: nn_tilde_mac_arm64
      - name: Download build binaries (x86)
        uses: actions/download-artifact@v4
        with:
          name: nn_tilde_mac_x86_64
      - name: build ub max with lipo
        run: |
          tar -xvf nn_puredata_macOS_arm64.tar.gz 
          mv nn_tilde nn_tilde_arm64
          tar -xvf nn_puredata_macOS_x64.tar.gz 
          mv nn_tilde nn_tilde_x64
          curl -L https://raw.githubusercontent.com/domkirke/nn_tilde/refs/heads/dev/install/macos_pd_makeub.sh > macos_pd_makeub.sh
          chmod 777 ./macos_pd_makeub.sh
          ./macos_pd_makeub.sh

      - name: Install signing certificate
        run: |
          CERT_PATH="$RUNNER_TEMP/signing-identity.p12"
          echo "${{ secrets.CERT }}" | base64 -D > $CERT_PATH
          security create-keychain -p "" build.keychain
          security default-keychain -s build.keychain
          security unlock-keychain -p "" build.keychain
          security import $CERT_PATH -k build.keychain -P "${{ secrets.CERT_PASSWORD }}" -T /usr/bin/codesign
          security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
          codesign --deep --force --sign ${{ secrets.SIGN_ID }} nn_tilde/*.dylib
          codesign --deep --force --sign ${{ secrets.SIGN_ID }} nn_tilde/nn~.pd_darwin
      
      - name: Compressing archive...
        run: tar -czvf nn_puredata_macos_ub.tar.gz nn_tilde

      - name: Upload UB 
        uses: actions/upload-artifact@v4
        with:
          name: nn_tilde_macos_pd_ub
          path: |
            nn_puredata_macos_ub.tar.gz
          

  AutomaticRelease:
    runs-on: ubuntu-latest
    needs: [MakeMaxUniversalForMac, MakePdUniversalForMac, linux, windows-x64-build]
    steps:
      - name: Download Max build binaries (mac)
        uses: actions/download-artifact@v4
        with:
          name: nn_tilde_macos_max_ub
      - name: Download Pd binaries (mac)
        uses: actions/download-artifact@v4
        with:
          name: nn_tilde_macos_pd_ub
      - name: Download build binaries (linux_x86_64)
        uses: actions/download-artifact@v4
        with:
          name: nn_linux_puredata_x86_64
      - name: Download build binaries (windows mac_x86_64)
        uses: actions/download-artifact@v4
        with:
          name: nn_tilde_win_x64 
      - name: Automated Release
        uses: "marvinpinto/action-automatic-releases@latest"
        with:
          repo_token: "${{ secrets.GITHUB_TOKEN }}"
          prerelease: false
          files: |
            nn_max_msp_macos_ub.tar.gz
            nn_puredata_macos_ub.tar.gz
            nn_linux_puredata_x86_64.tar.gz
            nn_max_msp_windows_x64.tar.gz
            nn_puredata_windows_x64.tar.gz



================================================
FILE: .github/workflows/python-publish.yaml
================================================
name: Upload Python Package

on:
  push:
    tags:
      - "v*"

permissions:
  contents: read

jobs:
  deploy:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Set up Python
      uses: actions/setup-python@v3
      with:
        python-version: '3.10'
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip setuptools wheel build
        python -m pip install -r requirements.txt
    - name: Build package
      run: NN_TILDE_VERSION=${{  github.ref_name }} python -m build
    - name: Publish package
      uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
      with:
        verbose: true
        user: __token__
        password: ${{ secrets.PYPI_TOKEN }}

================================================
FILE: .gitignore
================================================
*build
src/externals
src/frontend/tests
src/tests
.vscode
*libtorch
*DS_Store*
src/docs
dist/
*.egg-info*

================================================
FILE: .gitmodules
================================================
[submodule "src/frontend/maxmsp/min-api"]
	path = src/frontend/maxmsp/min-api
	url = https://github.com/Cycling74/min-api.git
[submodule "src/json"]
	path = src/json
	url = https://github.com/nlohmann/json.git


================================================
FILE: LICENSE
================================================
Creative Commons Attribution-NonCommercial 4.0 International

Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
terms and conditions, or any related information. Creative Commons
disclaims all liability for damages resulting from their use to the
fullest extent possible.

Using Creative Commons Public Licenses

Creative Commons public licenses provide a standard set of terms and
conditions that creators and other rights holders may use to share
original works of authorship and other material subject to copyright and
certain other rights specified in the public license below. The
following considerations are for informational purposes only, are not
exhaustive, and do not form part of our licenses.

-   Considerations for licensors: Our public licenses are intended for
    use by those authorized to give the public permission to use
    material in ways otherwise restricted by copyright and certain other
    rights. Our licenses are irrevocable. Licensors should read and
    understand the terms and conditions of the license they choose
    before applying it. Licensors should also secure all rights
    necessary before applying our licenses so that the public can reuse
    the material as expected. Licensors should clearly mark any material
    not subject to the license. This includes other CC-licensed
    material, or material used under an exception or limitation to
    copyright. More considerations for licensors :
    wiki.creativecommons.org/Considerations_for_licensors

-   Considerations for the public: By using one of our public licenses,
    a licensor grants the public permission to use the licensed material
    under specified terms and conditions. If the licensor's permission
    is not necessary for any reason–for example, because of any
    applicable exception or limitation to copyright–then that use is not
    regulated by the license. Our licenses grant only permissions under
    copyright and certain other rights that a licensor has authority to
    grant. Use of the licensed material may still be restricted for
    other reasons, including because others have copyright or other
    rights in the material. A licensor may make special requests, such
    as asking that all changes be marked or described. Although not
    required by our licenses, you are encouraged to respect those
    requests where reasonable. More considerations for the public :
    wiki.creativecommons.org/Considerations_for_licensees

Creative Commons Attribution-NonCommercial 4.0 International Public
License

By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution-NonCommercial 4.0 International Public License ("Public
License"). To the extent this Public License may be interpreted as a
contract, You are granted the Licensed Rights in consideration of Your
acceptance of these terms and conditions, and the Licensor grants You
such rights in consideration of benefits the Licensor receives from
making the Licensed Material available under these terms and conditions.

-   Section 1 – Definitions.

    -   a. Adapted Material means material subject to Copyright and
        Similar Rights that is derived from or based upon the Licensed
        Material and in which the Licensed Material is translated,
        altered, arranged, transformed, or otherwise modified in a
        manner requiring permission under the Copyright and Similar
        Rights held by the Licensor. For purposes of this Public
        License, where the Licensed Material is a musical work,
        performance, or sound recording, Adapted Material is always
        produced where the Licensed Material is synched in timed
        relation with a moving image.
    -   b. Adapter's License means the license You apply to Your
        Copyright and Similar Rights in Your contributions to Adapted
        Material in accordance with the terms and conditions of this
        Public License.
    -   c. Copyright and Similar Rights means copyright and/or similar
        rights closely related to copyright including, without
        limitation, performance, broadcast, sound recording, and Sui
        Generis Database Rights, without regard to how the rights are
        labeled or categorized. For purposes of this Public License, the
        rights specified in Section 2(b)(1)-(2) are not Copyright and
        Similar Rights.
    -   d. Effective Technological Measures means those measures that,
        in the absence of proper authority, may not be circumvented
        under laws fulfilling obligations under Article 11 of the WIPO
        Copyright Treaty adopted on December 20, 1996, and/or similar
        international agreements.
    -   e. Exceptions and Limitations means fair use, fair dealing,
        and/or any other exception or limitation to Copyright and
        Similar Rights that applies to Your use of the Licensed
        Material.
    -   f. Licensed Material means the artistic or literary work,
        database, or other material to which the Licensor applied this
        Public License.
    -   g. Licensed Rights means the rights granted to You subject to
        the terms and conditions of this Public License, which are
        limited to all Copyright and Similar Rights that apply to Your
        use of the Licensed Material and that the Licensor has authority
        to license.
    -   h. Licensor means the individual(s) or entity(ies) granting
        rights under this Public License.
    -   i. NonCommercial means not primarily intended for or directed
        towards commercial advantage or monetary compensation. For
        purposes of this Public License, the exchange of the Licensed
        Material for other material subject to Copyright and Similar
        Rights by digital file-sharing or similar means is NonCommercial
        provided there is no payment of monetary compensation in
        connection with the exchange.
    -   j. Share means to provide material to the public by any means or
        process that requires permission under the Licensed Rights, such
        as reproduction, public display, public performance,
        distribution, dissemination, communication, or importation, and
        to make material available to the public including in ways that
        members of the public may access the material from a place and
        at a time individually chosen by them.
    -   k. Sui Generis Database Rights means rights other than copyright
        resulting from Directive 96/9/EC of the European Parliament and
        of the Council of 11 March 1996 on the legal protection of
        databases, as amended and/or succeeded, as well as other
        essentially equivalent rights anywhere in the world.
    -   l. You means the individual or entity exercising the Licensed
        Rights under this Public License. Your has a corresponding
        meaning.

-   Section 2 – Scope.

    -   a. License grant.
        -   1. Subject to the terms and conditions of this Public
            License, the Licensor hereby grants You a worldwide,
            royalty-free, non-sublicensable, non-exclusive, irrevocable
            license to exercise the Licensed Rights in the Licensed
            Material to:
            -   A. reproduce and Share the Licensed Material, in whole
                or in part, for NonCommercial purposes only; and
            -   B. produce, reproduce, and Share Adapted Material for
                NonCommercial purposes only.
        -   2. Exceptions and Limitations. For the avoidance of doubt,
            where Exceptions and Limitations apply to Your use, this
            Public License does not apply, and You do not need to comply
            with its terms and conditions.
        -   3. Term. The term of this Public License is specified in
            Section 6(a).
        -   4. Media and formats; technical modifications allowed. The
            Licensor authorizes You to exercise the Licensed Rights in
            all media and formats whether now known or hereafter
            created, and to make technical modifications necessary to do
            so. The Licensor waives and/or agrees not to assert any
            right or authority to forbid You from making technical
            modifications necessary to exercise the Licensed Rights,
            including technical modifications necessary to circumvent
            Effective Technological Measures. For purposes of this
            Public License, simply making modifications authorized by
            this Section 2(a)(4) never produces Adapted Material.
        -   5. Downstream recipients.
            -   A. Offer from the Licensor – Licensed Material. Every
                recipient of the Licensed Material automatically
                receives an offer from the Licensor to exercise the
                Licensed Rights under the terms and conditions of this
                Public License.
            -   B. No downstream restrictions. You may not offer or
                impose any additional or different terms or conditions
                on, or apply any Effective Technological Measures to,
                the Licensed Material if doing so restricts exercise of
                the Licensed Rights by any recipient of the Licensed
                Material.
        -   6. No endorsement. Nothing in this Public License
            constitutes or may be construed as permission to assert or
            imply that You are, or that Your use of the Licensed
            Material is, connected with, or sponsored, endorsed, or
            granted official status by, the Licensor or others
            designated to receive attribution as provided in Section
            3(a)(1)(A)(i).
    -   b. Other rights.
        -   1. Moral rights, such as the right of integrity, are not
            licensed under this Public License, nor are publicity,
            privacy, and/or other similar personality rights; however,
            to the extent possible, the Licensor waives and/or agrees
            not to assert any such rights held by the Licensor to the
            limited extent necessary to allow You to exercise the
            Licensed Rights, but not otherwise.
        -   2. Patent and trademark rights are not licensed under this
            Public License.
        -   3. To the extent possible, the Licensor waives any right to
            collect royalties from You for the exercise of the Licensed
            Rights, whether directly or through a collecting society
            under any voluntary or waivable statutory or compulsory
            licensing scheme. In all other cases the Licensor expressly
            reserves any right to collect such royalties, including when
            the Licensed Material is used other than for NonCommercial
            purposes.

-   Section 3 – License Conditions.

    Your exercise of the Licensed Rights is expressly made subject to
    the following conditions.

    -   a. Attribution.
        -   1. If You Share the Licensed Material (including in modified
            form), You must:
            -   A. retain the following if it is supplied by the
                Licensor with the Licensed Material:
                -   i. identification of the creator(s) of the Licensed
                    Material and any others designated to receive
                    attribution, in any reasonable manner requested by
                    the Licensor (including by pseudonym if designated);
                -   ii. a copyright notice;
                -   iii. a notice that refers to this Public License;
                -   iv. a notice that refers to the disclaimer of
                    warranties;
                -   v. a URI or hyperlink to the Licensed Material to
                    the extent reasonably practicable;
            -   B. indicate if You modified the Licensed Material and
                retain an indication of any previous modifications; and
            -   C. indicate the Licensed Material is licensed under this
                Public License, and include the text of, or the URI or
                hyperlink to, this Public License.
        -   2. You may satisfy the conditions in Section 3(a)(1) in any
            reasonable manner based on the medium, means, and context in
            which You Share the Licensed Material. For example, it may
            be reasonable to satisfy the conditions by providing a URI
            or hyperlink to a resource that includes the required
            information.
        -   3. If requested by the Licensor, You must remove any of the
            information required by Section 3(a)(1)(A) to the extent
            reasonably practicable.
        -   4. If You Share Adapted Material You produce, the Adapter's
            License You apply must not prevent recipients of the Adapted
            Material from complying with this Public License.

-   Section 4 – Sui Generis Database Rights.

    Where the Licensed Rights include Sui Generis Database Rights that
    apply to Your use of the Licensed Material:

    -   a. for the avoidance of doubt, Section 2(a)(1) grants You the
        right to extract, reuse, reproduce, and Share all or a
        substantial portion of the contents of the database for
        NonCommercial purposes only;
    -   b. if You include all or a substantial portion of the database
        contents in a database in which You have Sui Generis Database
        Rights, then the database in which You have Sui Generis Database
        Rights (but not its individual contents) is Adapted Material;
        and
    -   c. You must comply with the conditions in Section 3(a) if You
        Share all or a substantial portion of the contents of the
        database.

    For the avoidance of doubt, this Section 4 supplements and does not
    replace Your obligations under this Public License where the
    Licensed Rights include other Copyright and Similar Rights.

-   Section 5 – Disclaimer of Warranties and Limitation of Liability.

    -   a. Unless otherwise separately undertaken by the Licensor, to
        the extent possible, the Licensor offers the Licensed Material
        as-is and as-available, and makes no representations or
        warranties of any kind concerning the Licensed Material, whether
        express, implied, statutory, or other. This includes, without
        limitation, warranties of title, merchantability, fitness for a
        particular purpose, non-infringement, absence of latent or other
        defects, accuracy, or the presence or absence of errors, whether
        or not known or discoverable. Where disclaimers of warranties
        are not allowed in full or in part, this disclaimer may not
        apply to You.
    -   b. To the extent possible, in no event will the Licensor be
        liable to You on any legal theory (including, without
        limitation, negligence) or otherwise for any direct, special,
        indirect, incidental, consequential, punitive, exemplary, or
        other losses, costs, expenses, or damages arising out of this
        Public License or use of the Licensed Material, even if the
        Licensor has been advised of the possibility of such losses,
        costs, expenses, or damages. Where a limitation of liability is
        not allowed in full or in part, this limitation may not apply to
        You.
    -   c. The disclaimer of warranties and limitation of liability
        provided above shall be interpreted in a manner that, to the
        extent possible, most closely approximates an absolute
        disclaimer and waiver of all liability.

-   Section 6 – Term and Termination.

    -   a. This Public License applies for the term of the Copyright and
        Similar Rights licensed here. However, if You fail to comply
        with this Public License, then Your rights under this Public
        License terminate automatically.
    -   b. Where Your right to use the Licensed Material has terminated
        under Section 6(a), it reinstates:

        -   1. automatically as of the date the violation is cured,
            provided it is cured within 30 days of Your discovery of the
            violation; or
        -   2. upon express reinstatement by the Licensor.

        For the avoidance of doubt, this Section 6(b) does not affect
        any right the Licensor may have to seek remedies for Your
        violations of this Public License.

    -   c. For the avoidance of doubt, the Licensor may also offer the
        Licensed Material under separate terms or conditions or stop
        distributing the Licensed Material at any time; however, doing
        so will not terminate this Public License.
    -   d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
        License.

-   Section 7 – Other Terms and Conditions.

    -   a. The Licensor shall not be bound by any additional or
        different terms or conditions communicated by You unless
        expressly agreed.
    -   b. Any arrangements, understandings, or agreements regarding the
        Licensed Material not stated herein are separate from and
        independent of the terms and conditions of this Public License.

-   Section 8 – Interpretation.

    -   a. For the avoidance of doubt, this Public License does not, and
        shall not be interpreted to, reduce, limit, restrict, or impose
        conditions on any use of the Licensed Material that could
        lawfully be made without permission under this Public License.
    -   b. To the extent possible, if any provision of this Public
        License is deemed unenforceable, it shall be automatically
        reformed to the minimum extent necessary to make it enforceable.
        If the provision cannot be reformed, it shall be severed from
        this Public License without affecting the enforceability of the
        remaining terms and conditions.
    -   c. No term or condition of this Public License will be waived
        and no failure to comply consented to unless expressly agreed to
        by the Licensor.
    -   d. Nothing in this Public License constitutes or may be
        interpreted as a limitation upon, or waiver of, any privileges
        and immunities that apply to the Licensor or You, including from
        the legal processes of any jurisdiction or authority.

Creative Commons is not a party to its public licenses. Notwithstanding,
Creative Commons may elect to apply one of its public licenses to
material it publishes and in those instances will be considered the
"Licensor." The text of the Creative Commons public licenses is
dedicated to the public domain under the CC0 Public Domain Dedication.
Except for the limited purpose of indicating that material is shared
under a Creative Commons public license or as otherwise permitted by the
Creative Commons policies published at creativecommons.org/policies,
Creative Commons does not authorize the use of the trademark "Creative
Commons" or any other trademark or logo of Creative Commons without its
prior written consent including, without limitation, in connection with
any unauthorized modifications to any of its public licenses or any
other arrangements, understandings, or agreements concerning use of
licensed material. For the avoidance of doubt, this paragraph does not
form part of the public licenses.

Creative Commons may be contacted at creativecommons.org.

================================================
FILE: MANIFEST.in
================================================
include requirements.txt

================================================
FILE: README.md
================================================
![banner](https://github.com/acids-ircam/nn_tilde/raw/master/assets/banner.png)

# Demonstration video

[![RAVE x nn~](http://img.youtube.com/vi/dMZs04TzxUI/mqdefault.jpg)](https://www.youtube.com/watch?v=dMZs04TzxUI)

# Installation

Grab the [latest release of nn~](https://github.com/acids-ircam/nn_tilde/releases/latest) ! Be sure to download the correct version for your installation.

## MaxMSP

Uncompress the `.tar.gz` file in the Package folder of your Max installation, i.e. in `Documents/Max [your version]/Packages/`. You can then instantiate  an `nn~` object!  Alt-click the `nn~` object to open the help patch, or access the nn~ Overview patch in the Extras menu.

##### Mac alert : codesigned with IRCAM identity and not trigger MacOS quarantine ; if it does so,  please launch in the terminal : 

```bash
cd "~/Max X/Packages/nn_tilde
sudo codesign --deep --force --sign - support/*.dylib
sudo codesign --deep --force --sign - externals/*/Contents/MacOS/*
xattr -r -d com.apple.quarantine externals/*/Contents/MacOS/*  
```

Alt+click on the `nn~` object to open the help patch, and follow the tabs to learn more about this project.

## PureData

Uncompress the `.tar.gz` file in the Package folder of your Pd installation, i.e. in `Documents/Pd/externals/`. You can then add a new path in the `Pd/File/Preferences/Path` menu pointing to the `nn_tilde` folder.

Similarly, the external should not be blocked on recent MacOS systems. It it still is, `cd` to the `nn_tilde` folder and fix with

```bash

xattr -r -d com.apple.quarantine Documents/Pd/externals/nn_tilde
sudo codesign --deep --force --sign - Documents/Pd/externals/nn_tilde/*.dylib
sudo codesign --deep --force --sign - Documents/Pd/externals/nn_tilde/nn\~.pd_darwin
```

# Usage

## Pretrained models

At its core, `nn~` is a translation layer between Max/MSP or PureData and the [libtorch c++ interface for deep learning](https://pytorch.org/). Alone, `nn~` is like an empty shell, and **requires pretrained models** to operate. Since v1.6.0, you can download them directly through Forum IRCAM API. Alternatively, you can find a few [RAVE](https://github.com/acids-ircam/RAVE) models [here](https://acids-ircam.github.io/rave_models_download) or [here](https://huggingface.co/Intelligent-Instruments-Lab/rave-models). Few [vschaos2](https://github.com/acids-ircam/vschaos2) models are also available[here](https://www.dropbox.com/sh/avdeiza7c6bn2of/AAAGZsnRo9ZVMa0iFhouCBL-a?dl=0).

Pretrained model for `nn~` are **torchscript files**, with a `.ts` extension. You can add these files to `nn_tilde/models` folders, or any place accessible through Max / Pd filesystem (Max: `Options/File Preferences`, PureData: `File/Preferences/Path`).

**New** : since v1.6.0, some models are directly downloadable through IRCAM Forum API.

Once this is done, you can load a model with `nn~` by providing its name as first argument (for example, here `isis.ts` located inside `nn_tilde/models` for Max, or among the PureData patch):  

<table>
  <tr>
    <th width="50%">Max / MSP</th>
    <th width="50%">PureData</th>
  </tr>
  <tr>
    <td><img width="100%" src="assets/max_instance.png" /></td>
    <td><img width="100%" src="assets/pd_instance.png" /></td>
  </tr>
</table>

## Model information fetching

## Model information fetching

Coming with v1.6.0, the `nn.info` object allows model inspection and fetching avilable models for download on the IRCAM-API. With this object, you can get available methods and attributes for a given model. For example, you can see below that a RAVE model has three different methods : `encode`, `decode`, and `forward`.

<center>
<img src="assets/max_nninfo.png"/>
</center>

### Methods

Models can have several _methods_, that correspond to several processing pipelines the model can achieve. Hence, each method can have a different number in inlets / outlets. The method is given as the third argument (for exemple, `decode` above), and equals `forward` by default.

### Attributes

It is possible the internal state of the module through _attributes_, that are **model-dependent** and defined at exportation. Model attributes can be set using _messages_, with the following syntax:

```bash
set ATTRIBUTE_NAME ATTRIBUTE_VAL_1 ATTRIBUTE_VAL_2
```

Using Max/MSP and PureData graphical objects, this can lead to an intuitive way to modify the behavior of the model, as shown below where we have two model attributes (i.e. generation temperature and generation mode), and the special `enable` attribute.

<table>
  <tr>
    <th width="50%">Max / MSP</th>
    <th width="50%">PureData</th>
  </tr>
  <tr>
    <td><img width="100%" src="assets/max_attr.png" /></td>
    <td><img width="100%" src="assets/pd_attr.png" /></td>
  </tr>
</table>

**New in 1.6.0**

- Buffers (Max) / Array (Pd) attribute setting to allow the `.ts` model to access internal buffers / arrays.
- `torch.Tensor` attributes can be set through Max/MSP `[array]`, allowing to set attributes of unlimited size.

## Buffer configuration

Internally, `nn~` has a circular buffer mechanism that helps maintain a reasonable computational load, if the given buffer size is greater tha 0. You can modify its size through the use of an additional integer after the method declaration, as shown below. 

**Important**For Windows users, the circular buffer is automatically disabled because of a memory leak [that occurs when a TorchScript model is used in a separate thread](https://github.com/pytorch/pytorch/issues/24237). Unfortunately, this implies a much lower efficiency in terms of CPU.  

<table>
  <tr>
    <th width="50%">Max / MSP</th>
    <th width="50%">PureData</th>
  </tr>
  <tr>
    <td><img width="100%" src="assets/max_buffer.png" /></td>
    <td><img width="100%" src="assets/pd_buffer.png" /></td>
  </tr>
</table>

## Multichannel (Max/MSP)

The Max/MSP release of `nn~` includes additional externals, namely `mc.nn~` and `mcs.nn~`, allowing the use of the multicanal abilities of Max 8+ to simplify the patching process with `nn~` and optionally decrease the computational load.

In the following examples, two audio files are being encoded then decoded by the same model in parallel

![regular](assets/max_regular.png)

This patch can be improved both visually _and_ computationally speaking by using `mc.nn~` and using _batch operations_

![mc](assets/max_mc.png)

Using `mc.nn~` we build the multicanal signals **over the different batches**. In the example above, each multicanal signal will have 2 different canals. We also propose the `mcs.nn~` external that builds multicanal signals **over the different dimensions**, as shown in the example below

![mcs](assets/max_mcs.png)

In the example above, the two multicanals signals yielded by the `nn~ rave encode 2` object have 16 canals each, corresponding to the 16 latent dimensions. This can help patching, while keeping the batching abilities of `mc.nn~` by creating an explicit number of inlets / oulets corresponding to the number of examples we want to process in parallel.

To recap, the regular `nn~` operates on a single example, and has as many inlets / outlets as the model has inputs / outputs. The `mc.nn~` external is like `nn~`, but can process multiple examples _at the same time_. The `mcs.nn~` variant is a bit different, and can process mulitple examples at the same time, but will **have one inlet / outlet per examples**.

## Lazy mode (Max/MSP)

Since v1.6.0, nn~ has a `void` mode, that allows to initialise it with a fixed number of inlets / outlets, and may be attached to a model afterwards. This can be done with the `void` special model, that enables this lazy initialisation.

<center>
<img src="assets/max_void.png" width="30%"/>
</center>

## Special messages

### enable [0 / 1]

Enable / Disable computation to save up computation without deleting the model. Similar to how a _bypass_ function would work.

### reload

Dynamically reloads the model. Can be useful if you want to periodically update the state of a model during a training.

### dump

Prints methods / attributes of the loaded model. 

### print_available_models

Prints models downloadable through API.

### download

Download a model from the API. 

### delete

Deletes a downloaded model.

### load

Change dynamically the incoming model.

### method

Change dynamically the used method.

# Scripting any PyTorch model in nn~

In the [`scripting`](https://github.com/acids-ircam/nn_tilde/tree/master/scripting) subfolder, you can find a series of examples that demonstrate how to write simple scripts to incorporate any type of deep models from PyTorch into MaxMSP (and potentially running on GPU). The examples show different use cases that also help to understand the input/output shapes relationships.
- `effects.py` : apply simple effects to the input (identical input and output shapes)
- `features.py` : compute spectral descriptors from the PyTorch audio library (each input audio buffer produces a single float as output)
- `unmix.py` : apply the unmix deep source separation model (input is split into 4 different audio streams containing « drums », « vocals », « bass » and « others »)


# Build Instructions

## macOS

- Download the latest libtorch (CPU) [here](https://pytorch.org/get-started/locally/) and unzip it to a known directory
- Run the following commands:

```bash
git clone https://github.com/acids-ircam/nn_tilde --recurse-submodules
cd nn_tilde
curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh > miniconda.sh
chmod +x ./miniconda.sh
bash ./miniconda.sh -b -u -p ./env
source ./env/bin/activate
pip install -r requirements.txt
conda install -c conda-forge curl
mkdir build
cd build
mkdir puredata_include
curl -L https://raw.githubusercontent.com/pure-data/pure-data/master/src/m_pd.h -o puredata_include/m_pd.h
export CC=$(brew --prefix llvm)/bin/clang
export CXX=$(brew --prefix llvm)/bin/clang++
cd build
cmake ../src -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_PREFIX_PATH=../env/lib/python3.12/site-packages/torch -DCMAKE_BUILD_TYPE=Release -DPUREDATA_INCLUDE_DIR=../puredata_include -DCMAKE_OSX_ARCHITECTURES=arm64
cmake --build . --config Release
```
please replace `arm64` in the last line by `x86_64` if you want compile for 64 bits. You can remove `-DPUREDATA_INCLUDE_DIR=../puredata_include` to compile only for Max. The Max package is produced in `src/`,  and Pd external in `build/frontend/puredata/Release`.


## Windows

- Download Libtorch (CPU) and dependencies [here](https://pytorch.org/get-started/locally/) and unzip to a known directory.
- Install [Visual Studio Redistribuable](https://learn.microsoft.com/fr-fr/cpp/windows/latest-supported-vc-redist?view=msvc-170) 
- Run the following commands (here for Git Bash):
```bash
git clone https://github.com/acids-ircam/nn_tilde --recurse-submodules
cd nn_tilde
curl -L https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.6.0%2Bcpu.zip > "libtorch.zip"
unzip libtorch.zip
mkdir pd
cd pd
curl -L https://msp.ucsd.edu/Software/pd-0.55-2.msw.zip -o pd.zip
unzip pd.zip
mv pd*/src .
mv pd*/bin .
cd ..
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg 
./bootstrap-vcpkg.bat
./vcpkg.exe integrate install
./vcpkg.exe install curl
cd ..
mkdir build
cd build
mkdir puredata_include
curl -L https://raw.githubusercontent.com/pure-data/pure-data/master/src/m_pd.h -o puredata_include/m_pd.h
export CC=$(brew --prefix llvm)/bin/clang
export CXX=$(brew --prefix llvm)/bin/clang++
cd build
cmake ../src -G "Visual Studio 17 2022" -DTorch_DIR=../libtorch/share/cmake/Torch -DPUREDATA_INCLUDE_DIR=../pd/src -DPUREDATA_BIN_DIR=../pd/bin -A x64
cmake --build . --config Release
```
You can remove `-DPUREDATA_INCLUDE_DIR=../puredata_include` to compile only for Max. The Max package is produced in `src/`,  and Pd external in `build/frontend/puredata/Release`.

## Raspberry Pi

**not availble in v1.6.0, planned in next version ; please take previous versions if needed**

While nn~ can be compiled and used on Raspberry Pi, you may have to consider using lighter deep learning models. We currently only support 64bit OS.

Install nn~ for PureData using

```bash
curl -s https://raw.githubusercontent.com/acids-ircam/nn_tilde/master/install/raspberrypi.sh | bash
```

# Funding

This work is led at IRCAM, and has been funded by the following projects

* [ANR MakiMono](https://acids.ircam.fr/course/makimono/)
* [ACTOR](https://www.actorproject.org/)
* [DAFNE+](https://dafneplus.eu/) N° 101061548

<img src="https://ec.europa.eu/regional_policy/images/information-sources/logo-download-center/eu_co_funded_en.jpg" width=200px/>


================================================
FILE: docs/index.md
================================================
![banner](https://github.com/acids-ircam/nn_tilde/raw/master/assets/banner.png)

# Demonstration video

[![RAVE x nn~](http://img.youtube.com/vi/dMZs04TzxUI/mqdefault.jpg)](https://www.youtube.com/watch?v=dMZs04TzxUI)

# Installation

Grab the [latest release of nn~](https://github.com/acids-ircam/nn_tilde/releases/latest) ! Be sure to download the correct version for your installation.

## MaxMSP

Uncompress the `.tar.gz` file in the Package folder of your Max installation, i.e. in `Documents/Max [your version]/Packages/`. You can then instantiate  an `nn~` object!  Alt-click the `nn~` object to open the help patch, or access the nn~ Overview patch in the Extras menu.

##### Mac alert : codesigned with IRCAM identity and not trigger MacOS quarantine ; if it does so,  please launch in the terminal : 

```bash
cd "~/Max X/Packages/nn_tilde
sudo codesign --deep --force --sign - support/*.dylib
sudo codesign --deep --force --sign - externals/*/Contents/MacOS/*
xattr -r -d com.apple.quarantine externals/*/Contents/MacOS/*  
```

Alt+click on the `nn~` object to open the help patch, and follow the tabs to learn more about this project.

## PureData

Uncompress the `.tar.gz` file in the Package folder of your Pd installation, i.e. in `Documents/Pd/externals/`. You can then add a new path in the `Pd/File/Preferences/Path` menu pointing to the `nn_tilde` folder.

Similarly, the external should not be blocked on recent MacOS systems. It it still is, `cd` to the `nn_tilde` folder and fix with

```bash

xattr -r -d com.apple.quarantine Documents/Pd/externals/nn_tilde
sudo codesign --deep --force --sign - Documents/Pd/externals/nn_tilde/*.dylib
sudo codesign --deep --force --sign - Documents/Pd/externals/nn_tilde/nn\~.pd_darwin
```

# Usage

## Pretrained models

At its core, `nn~` is a translation layer between Max/MSP or PureData and the [libtorch c++ interface for deep learning](https://pytorch.org/). Alone, `nn~` is like an empty shell, and **requires pretrained models** to operate. Since v1.6.0, you can download them directly through Forum IRCAM API. Alternatively, you can find a few [RAVE](https://github.com/acids-ircam/RAVE) models [here](https://acids-ircam.github.io/rave_models_download) or [here](https://huggingface.co/Intelligent-Instruments-Lab/rave-models). Few [vschaos2](https://github.com/acids-ircam/vschaos2) models are also available[here](https://www.dropbox.com/sh/avdeiza7c6bn2of/AAAGZsnRo9ZVMa0iFhouCBL-a?dl=0).

Pretrained model for `nn~` are **torchscript files**, with a `.ts` extension. You can add these files to `nn_tilde/models` folders, or any place accessible through Max / Pd filesystem (Max: `Options/File Preferences`, PureData: `File/Preferences/Path`).

**New** : since v1.6.0, some models are directly downloadable through IRCAM Forum API.

Once this is done, you can load a model with `nn~` by providing its name as first argument (for example, here `isis.ts` located inside `nn_tilde/models` for Max, or among the PureData patch):  

<table>
  <tr>
    <th width="50%">Max / MSP</th>
    <th width="50%">PureData</th>
  </tr>
  <tr>
    <td><img width="100%" src="assets/max_instance.png" /></td>
    <td><img width="100%" src="assets/pd_instance.png" /></td>
  </tr>
</table>

## Model information fetching

## Model information fetching

Coming with v1.6.0, the `nn.info` object allows model inspection and fetching avilable models for download on the IRCAM-API. With this object, you can get available methods and attributes for a given model. For example, you can see below that a RAVE model has three different methods : `encode`, `decode`, and `forward`.

<center>
<img src="assets/max_nninfo.png"/>
</center>

### Methods

Models can have several _methods_, that correspond to several processing pipelines the model can achieve. Hence, each method can have a different number in inlets / outlets. The method is given as the third argument (for exemple, `decode` above), and equals `forward` by default.

### Attributes

It is possible the internal state of the module through _attributes_, that are **model-dependent** and defined at exportation. Model attributes can be set using _messages_, with the following syntax:

```bash
set ATTRIBUTE_NAME ATTRIBUTE_VAL_1 ATTRIBUTE_VAL_2
```

Using Max/MSP and PureData graphical objects, this can lead to an intuitive way to modify the behavior of the model, as shown below where we have two model attributes (i.e. generation temperature and generation mode), and the special `enable` attribute.

<table>
  <tr>
    <th width="50%">Max / MSP</th>
    <th width="50%">PureData</th>
  </tr>
  <tr>
    <td><img width="100%" src="assets/max_attr.png" /></td>
    <td><img width="100%" src="assets/pd_attr.png" /></td>
  </tr>
</table>

**New in 1.6.0**

- Buffers (Max) / Array (Pd) attribute setting to allow the `.ts` model to access internal buffers / arrays.
- `torch.Tensor` attributes can be set through Max/MSP `[array]`, allowing to set attributes of unlimited size.

## Buffer configuration

Internally, `nn~` has a circular buffer mechanism that helps maintain a reasonable computational load, if the given buffer size is greater tha 0. You can modify its size through the use of an additional integer after the method declaration, as shown below. 

**Important**For Windows users, the circular buffer is automatically disabled because of a memory leak [that occurs when a TorchScript model is used in a separate thread](https://github.com/pytorch/pytorch/issues/24237). Unfortunately, this implies a much lower efficiency in terms of CPU.  

<table>
  <tr>
    <th width="50%">Max / MSP</th>
    <th width="50%">PureData</th>
  </tr>
  <tr>
    <td><img width="100%" src="assets/max_buffer.png" /></td>
    <td><img width="100%" src="assets/pd_buffer.png" /></td>
  </tr>
</table>

## Multichannel (Max/MSP)

The Max/MSP release of `nn~` includes additional externals, namely `mc.nn~` and `mcs.nn~`, allowing the use of the multicanal abilities of Max 8+ to simplify the patching process with `nn~` and optionally decrease the computational load.

In the following examples, two audio files are being encoded then decoded by the same model in parallel

![regular](assets/max_regular.png)

This patch can be improved both visually _and_ computationally speaking by using `mc.nn~` and using _batch operations_

![mc](assets/max_mc.png)

Using `mc.nn~` we build the multicanal signals **over the different batches**. In the example above, each multicanal signal will have 2 different canals. We also propose the `mcs.nn~` external that builds multicanal signals **over the different dimensions**, as shown in the example below

![mcs](assets/max_mcs.png)

In the example above, the two multicanals signals yielded by the `nn~ rave encode 2` object have 16 canals each, corresponding to the 16 latent dimensions. This can help patching, while keeping the batching abilities of `mc.nn~` by creating an explicit number of inlets / oulets corresponding to the number of examples we want to process in parallel.

To recap, the regular `nn~` operates on a single example, and has as many inlets / outlets as the model has inputs / outputs. The `mc.nn~` external is like `nn~`, but can process multiple examples _at the same time_. The `mcs.nn~` variant is a bit different, and can process mulitple examples at the same time, but will **have one inlet / outlet per examples**.

## Lazy mode (Max/MSP)

Since v1.6.0, nn~ has a `void` mode, that allows to initialise it with a fixed number of inlets / outlets, and may be attached to a model afterwards. This can be done with the `void` special model, that enables this lazy initialisation.

<center>
<img src="assets/max_void.png" width="30%"/>
</center>

## Special messages

### enable [0 / 1]

Enable / Disable computation to save up computation without deleting the model. Similar to how a _bypass_ function would work.

### reload

Dynamically reloads the model. Can be useful if you want to periodically update the state of a model during a training.

### dump

Prints methods / attributes of the loaded model. 

### print_available_models

Prints models downloadable through API.

### download

Download a model from the API. 

### delete

Deletes a downloaded model.

### load

Change dynamically the incoming model.

### method

Change dynamically the used method.

# Build Instructions

## macOS

- Download the latest libtorch (CPU) [here](https://pytorch.org/get-started/locally/) and unzip it to a known directory
- Run the following commands:

```bash
git clone https://github.com/acids-ircam/nn_tilde --recurse-submodules
cd nn_tilde
curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh > miniconda.sh
chmod +x ./miniconda.sh
bash ./miniconda.sh -b -u -p ./env
source ./env/bin/activate
pip install -r requirements.txt
conda install -c conda-forge curl
mkdir build
cd build
mkdir puredata_include
curl -L https://raw.githubusercontent.com/pure-data/pure-data/master/src/m_pd.h -o puredata_include/m_pd.h
export CC=$(brew --prefix llvm)/bin/clang
export CXX=$(brew --prefix llvm)/bin/clang++
cd build
cmake ../src -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_PREFIX_PATH=../env/lib/python3.12/site-packages/torch -DCMAKE_BUILD_TYPE=Release -DPUREDATA_INCLUDE_DIR=../puredata_include -DCMAKE_OSX_ARCHITECTURES=arm64
cmake --build . --config Release
```
please replace `arm64` in the last line by `x86_64` if you want compile for 64 bits. You can remove `-DPUREDATA_INCLUDE_DIR=../puredata_include` to compile only for Max. The Max package is produced in `src/`,  and Pd external in `build/frontend/puredata/Release`.


## Windows

- Download Libtorch (CPU) and dependencies [here](https://pytorch.org/get-started/locally/) and unzip to a known directory.
- Install [Visual Studio Redistribuable](https://learn.microsoft.com/fr-fr/cpp/windows/latest-supported-vc-redist?view=msvc-170) 
- Run the following commands (here for Git Bash):
```bash
git clone https://github.com/acids-ircam/nn_tilde --recurse-submodules
cd nn_tilde
curl -L https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.6.0%2Bcpu.zip > "libtorch.zip"
unzip libtorch.zip
mkdir pd
cd pd
curl -L https://msp.ucsd.edu/Software/pd-0.55-2.msw.zip -o pd.zip
unzip pd.zip
mv pd*/src .
mv pd*/bin .
cd ..
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg 
./bootstrap-vcpkg.bat
./vcpkg.exe integrate install
./vcpkg.exe install curl
cd ..
mkdir build
cd build
mkdir puredata_include
curl -L https://raw.githubusercontent.com/pure-data/pure-data/master/src/m_pd.h -o puredata_include/m_pd.h
export CC=$(brew --prefix llvm)/bin/clang
export CXX=$(brew --prefix llvm)/bin/clang++
cd build
cmake ../src -G "Visual Studio 17 2022" -DTorch_DIR=../libtorch/share/cmake/Torch -DPUREDATA_INCLUDE_DIR=../pd/src -DPUREDATA_BIN_DIR=../pd/bin -A x64
cmake --build . --config Release
```
You can remove `-DPUREDATA_INCLUDE_DIR=../puredata_include` to compile only for Max. The Max package is produced in `src/`,  and Pd external in `build/frontend/puredata/Release`.

## Raspberry Pi

**not availble in v1.6.0, planned in next version ; please take previous versions if needed**

While nn~ can be compiled and used on Raspberry Pi, you may have to consider using lighter deep learning models. We currently only support 64bit OS.

Install nn~ for PureData using

```bash
curl -s https://raw.githubusercontent.com/acids-ircam/nn_tilde/master/install/raspberrypi.sh | bash
```

# Funding

This work is led at IRCAM, and has been funded by the following projects

* [ANR MakiMono](https://acids.ircam.fr/course/makimono/)
* [ACTOR](https://www.actorproject.org/)
* [DAFNE+](https://dafneplus.eu/) N° 101061548

<img src="https://ec.europa.eu/regional_policy/images/information-sources/logo-download-center/eu_co_funded_en.jpg" width=200px/>


================================================
FILE: extras/01_nn_attributes.maxpat
================================================
{
	"patcher" : 	{
		"fileversion" : 1,
		"appversion" : 		{
			"major" : 8,
			"minor" : 3,
			"revision" : 1,
			"architecture" : "x64",
			"modernui" : 1
		}
,
		"classnamespace" : "box",
		"rect" : [ 34.0, 87.0, 1489.0, 821.0 ],
		"bglocked" : 1,
		"openinpresentation" : 0,
		"default_fontsize" : 12.0,
		"default_fontface" : 0,
		"default_fontname" : "Arial",
		"gridonopen" : 1,
		"gridsize" : [ 15.0, 15.0 ],
		"gridsnaponopen" : 1,
		"objectsnaponopen" : 1,
		"statusbarvisible" : 2,
		"toolbarvisible" : 1,
		"lefttoolbarpinned" : 0,
		"toptoolbarpinned" : 0,
		"righttoolbarpinned" : 0,
		"bottomtoolbarpinned" : 0,
		"toolbars_unpinned_last_save" : 0,
		"tallnewobj" : 0,
		"boxanimatetime" : 200,
		"enablehscroll" : 1,
		"enablevscroll" : 1,
		"devicewidth" : 0.0,
		"description" : "",
		"digest" : "",
		"tags" : "",
		"style" : "",
		"subpatcher_template" : "",
		"assistshowspatchername" : 0,
		"boxes" : [ 			{
				"box" : 				{
					"id" : "obj-52",
					"maxclass" : "newobj",
					"numinlets" : 3,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 733.5, 638.0, 142.0, 22.0 ],
					"text" : "rampsmooth~ 2048 2048"
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-49",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 888.5, 671.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-36",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "float" ],
					"patching_rect" : [ 888.5, 638.0, 98.0, 22.0 ],
					"text" : "snapshot~ 0.046"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-23",
					"linecount" : 3,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 717.0, 464.5, 198.0, 47.0 ],
					"presentation_linecount" : 3,
					"text" : "models that output downsampled signals can be discretized using a snapshot~ object"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-16",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 807.5, 676.0, 71.0, 78.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-14",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 717.0, 676.0, 83.0, 78.0 ]
				}

			}
, 			{
				"box" : 				{
					"basictuning" : 440,
					"data" : 					{
						"clips" : [ 							{
								"absolutepath" : "drumLoop.aif",
								"filename" : "drumLoop.aif",
								"filekind" : "audiofile",
								"id" : "u599005403",
								"loop" : 1,
								"content_state" : 								{
									"loop" : 1
								}

							}
 ]
					}
,
					"followglobaltempo" : 0,
					"formantcorrection" : 0,
					"id" : "obj-10",
					"maxclass" : "playlist~",
					"mode" : "basic",
					"numinlets" : 1,
					"numoutlets" : 5,
					"originallength" : [ 0.0, "ticks" ],
					"originaltempo" : 120.0,
					"outlettype" : [ "signal", "signal", "signal", "", "dictionary" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 717.0, 535.0, 150.0, 30.0 ],
					"pitchcorrection" : 0,
					"quality" : "basic",
					"timestretch" : [ 0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-8",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 717.0, 579.0, 140.0, 22.0 ],
					"text" : "nn~ multieffect rms 2048"
				}

			}
, 			{
				"box" : 				{
					"hidden" : 1,
					"id" : "obj-78",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 757.0, 127.0, 73.0, 22.0 ],
					"text" : "loadmess 1."
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-75",
					"linecount" : 5,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 297.0, 127.0, 199.0, 74.0 ],
					"text" : "an given attribute can be printed with the get method, followed by the attribute name.\nsimilarly, attributes can be changed using the set method."
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-74",
					"linecount" : 4,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 481.0, 520.0, 198.0, 60.0 ],
					"text" : "arguments can also comprise several values, with different types. You can refer to the given python code to see how it is implemented."
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-73",
					"linecount" : 2,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 297.0, 241.5, 197.0, 33.0 ],
					"text" : "for a boolean, either true or false must be sent"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-72",
					"linecount" : 2,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 297.0, 205.0, 197.0, 33.0 ],
					"text" : "there can be three types ofd attribute : int, str, and string"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-71",
					"linecount" : 2,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 706.0, 241.5, 197.0, 33.0 ],
					"text" : "for strings, int and floats, arguments can be sent directly."
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-70",
					"linecount" : 2,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 356.0, 63.0, 439.0, 33.0 ],
					"text" : "also, attributes accesible from Max can also be listed by sending the get_settable_attributes message"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-69",
					"linecount" : 2,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 356.0, 29.0, 439.0, 33.0 ],
					"text" : "methods available for a given model can be printed by sending the get_available_methods message to nn~"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-66",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 356.0, 554.0, 94.0, 22.0 ],
					"text" : "set fractal $1 $2"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-64",
					"maxclass" : "number",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 356.0, 479.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-62",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 356.0, 520.0, 41.0, 22.0 ],
					"text" : "pak i f"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-57",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 106.0, 132.0, 96.0, 22.0 ],
					"text" : "get invert_signal"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-55",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 40.0, 74.0, 111.0, 22.0 ],
					"text" : "nn~ multieffect thru"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-54",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 186.0, 29.0, 130.0, 22.0 ],
					"text" : "get_settable_attributes"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-53",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 40.0, 29.0, 132.0, 22.0 ],
					"text" : "get_available_methods"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-51",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 356.0, 660.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-50",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 436.0, 479.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-46",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 356.0, 605.0, 138.0, 22.0 ],
					"text" : "nn~ multieffect fractalize"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-45",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 1334.0, 356.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-44",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 1334.0, 301.0, 110.0, 22.0 ],
					"text" : "nn~ multieffect rms"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-43",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 1175.0, 356.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-42",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 1030.0, 356.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-41",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 2,
					"outlettype" : [ "signal", "signal" ],
					"patching_rect" : [ 1030.0, 301.0, 164.0, 22.0 ],
					"text" : "nn~ multieffect midside"
				}

			}
, 			{
				"box" : 				{
					"basictuning" : 440,
					"data" : 					{
						"clips" : [ 							{
								"absolutepath" : "drumLoop.aif",
								"filename" : "drumLoop.aif",
								"filekind" : "audiofile",
								"id" : "u599005403",
								"loop" : 1,
								"content_state" : 								{
									"loop" : 1
								}

							}
 ]
					}
,
					"followglobaltempo" : 0,
					"formantcorrection" : 0,
					"id" : "obj-40",
					"maxclass" : "playlist~",
					"mode" : "basic",
					"numinlets" : 1,
					"numoutlets" : 5,
					"originallength" : [ 0.0, "ticks" ],
					"originaltempo" : 120.0,
					"outlettype" : [ "signal", "signal", "signal", "", "dictionary" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 1030.0, 238.0, 150.0, 30.0 ],
					"pitchcorrection" : 0,
					"quality" : "basic",
					"timestretch" : [ 0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-38",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 159.0, 191.0, 124.0, 22.0 ],
					"text" : "set invert_signal false"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-37",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 136.0, 162.0, 119.0, 22.0 ],
					"text" : "set invert_signal true"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-35",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 50.0, 132.0, 53.0, 22.0 ],
					"text" : "cycle~ 2"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-34",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 50.0, 247.0, 119.0, 22.0 ],
					"text" : "nn~ multieffect invert"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-32",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 193.0, 285.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-33",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 50.0, 285.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-31",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 44.0, 660.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-30",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 118.0, 554.0, 195.0, 22.0 ],
					"text" : "set polynomial_factors $1 $2 $3 $4"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-28",
					"maxclass" : "newobj",
					"numinlets" : 4,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 118.0, 520.0, 55.0, 22.0 ],
					"text" : "pak f f f f"
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-27",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 290.0, 477.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-26",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 233.0, 477.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-25",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 176.0, 477.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-24",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 118.0, 477.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-22",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 44.0, 477.0, 53.0, 22.0 ],
					"text" : "cycle~ 2"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-21",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 44.0, 611.0, 147.0, 22.0 ],
					"text" : "nn~ multieffect polynomial"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-20",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 620.0, 198.0, 129.0, 22.0 ],
					"text" : "set saturate_mode clip"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-19",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 597.0, 162.0, 135.0, 22.0 ],
					"text" : "set saturate_mode tanh"
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-17",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 757.0, 162.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-15",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 757.0, 198.0, 104.0, 22.0 ],
					"text" : "set gain_factor $1"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-11",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 548.0, 285.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-12",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 548.0, 247.0, 133.0, 22.0 ],
					"text" : "nn~ multieffect saturate"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-13",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 548.0, 132.0, 53.0, 22.0 ],
					"text" : "cycle~ 2"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-9",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 1298.0, 20.0, 53.0, 22.0 ],
					"text" : "cycle~ 8"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-5",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 1207.0, 90.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-6",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 1207.0, 52.0, 110.0, 22.0 ],
					"text" : "nn~ multieffect add"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-7",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 1207.0, 20.0, 53.0, 22.0 ],
					"text" : "cycle~ 2"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-3",
					"maxclass" : "scope~",
					"numinlets" : 2,
					"numoutlets" : 0,
					"patching_rect" : [ 1030.0, 90.0, 130.0, 130.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-2",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 1030.0, 52.0, 111.0, 22.0 ],
					"text" : "nn~ multieffect thru"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-1",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "signal" ],
					"patching_rect" : [ 1030.0, 20.0, 53.0, 22.0 ],
					"text" : "cycle~ 2"
				}

			}
, 			{
				"box" : 				{
					"angle" : 270.0,
					"background" : 1,
					"grad1" : [ 0.631372549019608, 0.631372549019608, 0.631372549019608, 1.0 ],
					"grad2" : [ 0.76078431372549, 0.76078431372549, 0.76078431372549, 1.0 ],
					"id" : "obj-67",
					"maxclass" : "panel",
					"mode" : 1,
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 35.5, 444.0, 657.5, 366.0 ],
					"proportion" : 0.5
				}

			}
, 			{
				"box" : 				{
					"angle" : 270.0,
					"background" : 1,
					"grad1" : [ 0.631372549019608, 0.631372549019608, 0.631372549019608, 1.0 ],
					"grad2" : [ 0.76078431372549, 0.76078431372549, 0.76078431372549, 1.0 ],
					"id" : "obj-58",
					"maxclass" : "panel",
					"mode" : 1,
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 31.5, 13.0, 968.5, 95.0 ],
					"proportion" : 0.5
				}

			}
, 			{
				"box" : 				{
					"angle" : 270.0,
					"background" : 1,
					"grad1" : [ 0.631372549019608, 0.631372549019608, 0.631372549019608, 1.0 ],
					"grad2" : [ 0.76078431372549, 0.76078431372549, 0.76078431372549, 1.0 ],
					"id" : "obj-60",
					"maxclass" : "panel",
					"mode" : 1,
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 35.5, 119.0, 475.5, 307.0 ],
					"proportion" : 0.5
				}

			}
, 			{
				"box" : 				{
					"angle" : 270.0,
					"background" : 1,
					"grad1" : [ 0.631372549019608, 0.631372549019608, 0.631372549019608, 1.0 ],
					"grad2" : [ 0.76078431372549, 0.76078431372549, 0.76078431372549, 1.0 ],
					"id" : "obj-61",
					"maxclass" : "panel",
					"mode" : 1,
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 524.5, 119.0, 475.5, 307.0 ],
					"proportion" : 0.5
				}

			}
, 			{
				"box" : 				{
					"angle" : 270.0,
					"background" : 1,
					"grad1" : [ 0.631372549019608, 0.631372549019608, 0.631372549019608, 1.0 ],
					"grad2" : [ 0.76078431372549, 0.76078431372549, 0.76078431372549, 1.0 ],
					"id" : "obj-4",
					"maxclass" : "panel",
					"mode" : 1,
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 706.0, 444.0, 294.0, 366.0 ],
					"proportion" : 0.5
				}

			}
 ],
		"lines" : [ 			{
				"patchline" : 				{
					"destination" : [ "obj-2", 0 ],
					"source" : [ "obj-1", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-8", 0 ],
					"source" : [ "obj-10", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-11", 0 ],
					"source" : [ "obj-12", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-12", 0 ],
					"source" : [ "obj-13", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-12", 0 ],
					"midpoints" : [ 766.5, 232.0, 557.5, 232.0 ],
					"source" : [ "obj-15", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-15", 0 ],
					"source" : [ "obj-17", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-12", 0 ],
					"midpoints" : [ 606.5, 187.0, 607.0, 187.0, 607.0, 232.0, 557.5, 232.0 ],
					"source" : [ "obj-19", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-3", 0 ],
					"source" : [ "obj-2", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-12", 0 ],
					"midpoints" : [ 629.5, 232.0, 557.5, 232.0 ],
					"source" : [ "obj-20", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-31", 0 ],
					"source" : [ "obj-21", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-21", 0 ],
					"order" : 1,
					"source" : [ "obj-22", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-46", 0 ],
					"midpoints" : [ 53.5, 597.0, 365.5, 597.0 ],
					"order" : 0,
					"source" : [ "obj-22", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-28", 0 ],
					"midpoints" : [ 127.5, 502.0, 127.5, 502.0 ],
					"source" : [ "obj-24", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-28", 1 ],
					"midpoints" : [ 185.5, 502.0, 142.0, 502.0, 142.0, 514.0, 139.5, 514.0 ],
					"source" : [ "obj-25", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-28", 2 ],
					"midpoints" : [ 242.5, 514.0, 151.5, 514.0 ],
					"source" : [ "obj-26", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-28", 3 ],
					"midpoints" : [ 299.5, 514.0, 163.5, 514.0 ],
					"source" : [ "obj-27", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-30", 0 ],
					"source" : [ "obj-28", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-21", 0 ],
					"source" : [ "obj-30", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-33", 0 ],
					"source" : [ "obj-34", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-32", 0 ],
					"midpoints" : [ 59.5, 230.0, 202.5, 230.0 ],
					"order" : 0,
					"source" : [ "obj-35", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-34", 0 ],
					"midpoints" : [ 59.5, 187.0, 59.5, 187.0 ],
					"order" : 1,
					"source" : [ "obj-35", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-49", 0 ],
					"source" : [ "obj-36", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-34", 0 ],
					"midpoints" : [ 145.5, 239.0, 59.5, 239.0 ],
					"source" : [ "obj-37", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-34", 0 ],
					"midpoints" : [ 168.5, 239.0, 59.5, 239.0 ],
					"source" : [ "obj-38", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-41", 1 ],
					"midpoints" : [ 1072.25, 288.0, 1184.5, 288.0 ],
					"source" : [ "obj-40", 1 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-41", 0 ],
					"order" : 1,
					"source" : [ "obj-40", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-44", 0 ],
					"midpoints" : [ 1039.5, 289.0, 1343.5, 289.0 ],
					"order" : 0,
					"source" : [ "obj-40", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-42", 0 ],
					"source" : [ "obj-41", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-43", 0 ],
					"source" : [ "obj-41", 1 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-45", 0 ],
					"source" : [ "obj-44", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-51", 0 ],
					"source" : [ "obj-46", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-62", 1 ],
					"source" : [ "obj-50", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-16", 0 ],
					"source" : [ "obj-52", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-55", 0 ],
					"source" : [ "obj-53", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-55", 0 ],
					"midpoints" : [ 195.5, 64.0, 49.5, 64.0 ],
					"source" : [ "obj-54", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-34", 0 ],
					"midpoints" : [ 115.5, 238.0, 59.5, 238.0 ],
					"source" : [ "obj-57", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-5", 0 ],
					"source" : [ "obj-6", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-66", 0 ],
					"source" : [ "obj-62", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-62", 0 ],
					"source" : [ "obj-64", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-46", 0 ],
					"source" : [ "obj-66", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-6", 0 ],
					"source" : [ "obj-7", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-17", 0 ],
					"hidden" : 1,
					"source" : [ "obj-78", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-14", 0 ],
					"order" : 2,
					"source" : [ "obj-8", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-36", 0 ],
					"order" : 0,
					"source" : [ "obj-8", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-52", 0 ],
					"order" : 1,
					"source" : [ "obj-8", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-6", 1 ],
					"source" : [ "obj-9", 0 ]
				}

			}
 ],
		"dependency_cache" : [ 			{
				"name" : "drumLoop.aif",
				"bootpath" : "C74:/media/msp",
				"type" : "AIFF",
				"implicit" : 1
			}
, 			{
				"name" : "nn~.mxo",
				"type" : "iLaX"
			}
 ],
		"autosave" : 0
	}

}


================================================
FILE: extras/generate_test_model.py
================================================
from typing import List, Tuple

import torch
import torch.nn as nn

import nn_tilde


class AudioUtils(nn_tilde.Module):

    def __init__(self):
        super().__init__()
        # REGISTER ATTRIBUTES
        self.register_attribute('gain_factor', 1.)
        self.register_attribute('polynomial_factors', (1., 0., 0., 0.))
        self.register_attribute('saturate_mode', 'tanh')
        self.register_attribute('invert_signal', False)
        self.register_attribute('fractal', (2, 0.))

        # REGISTER METHODS
        self.register_method(
            'thru',
            in_channels=1,
            in_ratio=1,
            out_channels=1,
            out_ratio=1,
            input_labels=['(signal) input signal'],
            output_labels=['(signal) output signal'],
        )
        self.register_method(
            'invert',
            in_channels=1,
            in_ratio=1,
            out_channels=1,
            out_ratio=1,
            input_labels=['(signal) input signal'],
            output_labels=['(signal) output signal'],
        )
        self.register_method(
            'add',
            in_channels=2,
            in_ratio=1,
            out_channels=1,
            out_ratio=1,
            input_labels=['(signal) first signal', '(signal) second signal'],
            output_labels=['(signal) output signal'],
        )
        self.register_method(
            'saturate',
            in_channels=1,
            in_ratio=1,
            out_channels=1,
            out_ratio=1,
            input_labels=['(signal) signal to saturate'],
            output_labels=['(signal) saturated signal'],
        )
        self.register_method(
            'midside',
            in_channels=2,
            in_ratio=1,
            out_channels=2,
            out_ratio=1,
            input_labels=['(signal) L channel', '(signal) R channel'],
            output_labels=['(signal) Mid channel', '(signal) Side channel'],
        )
        self.register_method(
            'rms',
            in_channels=1,
            in_ratio=1,
            out_channels=1,
            out_ratio=1024,
            input_labels=['(signal) signal to monitor'],
            output_labels=['(signal) rms value'],
        )
        self.register_method(
            'polynomial',
            in_channels=1,
            in_ratio=1,
            out_channels=1,
            out_ratio=1,
            input_labels=['(signal) signal to distort'],
            output_labels=['(signal) distorted signal'],
        )

        self.register_method(
            'fractalize',
            in_channels=1,
            in_ratio=512,
            out_channels=1,
            out_ratio=512,
            input_labels=['(signal) signal to replicate'],
            output_labels=['(signal) fractalized signal'],
        )

    @torch.jit.export
    def thru(self, x: torch.Tensor):
        return x

    # defining main methods
    @torch.jit.export
    def invert(self, x: torch.Tensor):
        if self.invert_signal[0]:
            return x
        else:
            return -x

    @torch.jit.export
    def add(self, x: torch.Tensor):
        return x.sum(-2, keepdim=True) / 2

    @torch.jit.export
    def fractalize(self, x: torch.Tensor):
        fractal_order = int(self.fractal[0])
        fractal_amount = float(self.fractal[1])
        downsampled_signal = x[..., ::fractal_order]
        return x

    @torch.jit.export
    def polynomial(self, x: torch.Tensor):
        out = torch.zeros_like(x)
        for i in range(4):
            out += self.polynomial_factors[i] * x.pow(i + 1)
        return out

    @torch.jit.export
    def saturate(self, x: torch.Tensor):
        saturate_mode = self.saturate_mode[0]
        if saturate_mode == 'tanh':
            return torch.tanh(x * self.gain_factor[0])
        elif saturate_mode == 'clip':
            return torch.clamp(x * self.gain_factor[0], -1, 1)

    @torch.jit.export
    def midside(self, x: torch.Tensor):
        l, r = x[..., 0, :], x[..., 1, :]
        return torch.stack([(l + r) / 2, (l - r) / 2], dim=-2)

    @torch.jit.export
    def rms(self, x: torch.Tensor):
        x = x.reshape(x.shape[0], x.shape[1], 1024, -1)
        rms = x.pow(2).sum(-2).sqrt() / x.size(-1)
        return rms

    # defining attribute getters
    # WARNING : typing the function's ouptut is mandatory
    @torch.jit.export
    def get_gain_factor(self) -> float:
        return float(self.gain_factor[0])

    @torch.jit.export
    def get_polynomial_factors(self) -> List[float]:
        polynomial_factors: List[float] = []
        for p in self.polynomial_factors:
            polynomial_factors.append(float(p))
        return polynomial_factors

    @torch.jit.export
    def get_saturate_mode(self) -> str:
        return self.saturate_mode[0]

    @torch.jit.export
    def get_invert_signal(self) -> bool:
        return self.invert_signal[0]

    @torch.jit.export
    def get_fractal(self) -> Tuple[int, float]:
        return (int(self.fractal[0]), float(self.fractal[1]))

    # defining attribute setter
    # setters must return an error code :
    # return 0 if the attribute has been adequately set,
    # return -1 if the attribute was wrong.
    @torch.jit.export
    def set_gain_factor(self, x: float) -> int:
        self.gain_factor = (x, )
        return 0

    @torch.jit.export
    def set_polynomial_factors(self, factor1: float, factor2: float,
                               factor3: float, factor4: float) -> int:
        factors = (factor1, factor2, factor3, factor4)
        self.polynomial_factors = factors
        return 0

    @torch.jit.export
    def set_saturate_mode(self, x: str):
        if (x == 'tanh') or (x == 'clip'):
            self.saturate_mode = (x, )
            return 0
        else:
            return -1

    @torch.jit.export
    def set_invert_signal(self, x: bool):
        self.invert_signal = (x, )
        return 0

    @torch.jit.export
    def set_fractal(self, factor: int, amount: float):
        if factor <= 0:
            return -1
        elif factor % 2 != 0:
            return -1
        self.fractal = (factor, float(amount))
        return 0


if __name__ == '__main__':
    model = AudioUtils()
    model.export_to_ts('multieffect.ts')


================================================
FILE: install/dylib_fix.py
================================================
import argparse
import fnmatch
import tqdm
import re
import subprocess
import stat
import sys, os
from pathlib import Path


parser = argparse.ArgumentParser()
parser.add_argument('-p', '--path', type=Path, required=True)
parser.add_argument('-l', '--lib_paths', nargs="*")
parser.add_argument('-o', '--out_dir', type=Path, default=None, help="optional directory for copying dylibs")
parser.add_argument('--safe', action="store_true", help="safe mode")
parser.add_argument('--sign_id', type=str, default="-", help="codesign sign")
parser.add_argument('--noclean_rpath', action="store_true", help="does not clean rpath")
parser.add_argument('--verbose', action="store_true", help="verbose output")
args = parser.parse_args()


DEFAULT_EXCLUDE_PATHS_SOLVE = ['/System/Library/Frameworks', '@executable_path', '/usr/lib']
DEFAULT_EXCLUDE_LIBS = [r'libc\+\+.*', r'libSystem\.B\.*', r'libobjc\.A\.*']


def is_executable(file_path):
    # Check if the file exists and is a regular file
    if not os.path.isfile(file_path):
        return False
    
    try:
        result = subprocess.run(
            ['file', '--brief', file_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
            check=True
        )
        output = result.stdout.strip()
        # Check if the file is considered a Mach-O dynamically linked shared library or executable
        if 'Mach-O' in output and ('executable' in output or 'dynamically linked shared library' in output or 'bundle' in output):
            return True
    except subprocess.CalledProcessError:
        pass

    return False


def extract_rpaths(executable_path, replace_dynamic_paths = True):
    # Run otool to get load commands
    try:
        result = subprocess.run(['otool', '-l', executable_path], 
                                check=True, 
                                text=True, 
                                capture_output=True)
        output = result.stdout

        # Regex pattern to capture RPATH entries
        rpath_pattern = re.compile(r'LC_RPATH.*?\n.*?path (.*?) \(offset', re.S)
        
        # Find all RPATH entries
        rpaths = rpath_pattern.findall(output)

        if replace_dynamic_paths:
            for i, r in enumerate(rpaths):
                rpaths[i] = re.sub("@loader_path", str(executable_path.parent), r)
        

        for i, r in enumerate(rpaths):
            if r.startswith("@loader_path") or r.startswith("@loader_path") or r.startswith("@executable_path"):
                continue 
            rpaths[i] = Path(r)
        return rpaths

    except subprocess.CalledProcessError as e:
        print(f"An error occurred: {e}")
        return []


def get_library_name(libname):
    return os.path.splitext(os.path.basename(libname))[0].split('.')[0]


def get_dependencies(filepath, dir_filter=[], lib_filter=[], rpath=None):
    if not os.path.exists(filepath): return None
    rpath = rpath or extract_rpaths(filepath)
    try:
        result = subprocess.run(['otool', '-L', filepath], 
                                check=True, 
                                text=True, 
                                capture_output=True)
        # Return the output
    except subprocess.CalledProcessError as e:
        return f"An error occurred: {e}"
    result_lines = result.stdout.split('\n')
    deps = {}
    for r in result_lines:
        result_parsed = re.match(r"\s*(.+)\s+\((.+)\)$", r)
        if result_parsed is None: 
            continue
        outs = result_parsed.groups()
        path = outs[0]
        dep_name = path.split('/')[-1]
        original_path = str(path)
        for rp in rpath:
            path_tmp = Path(str(path).replace('@rpath', str(rp)))
            if os.path.exists(path_tmp):
                path = path_tmp
                break
        if True in [Path(path).is_relative_to(r) for r in dir_filter]: continue
        if True in [re.search(f, str(path)) is not None for f in lib_filter]: continue
        deps[get_library_name(dep_name)] = {'path': path, 'version': outs[1], 'origin': filepath, 'linked': original_path}
    return deps


def get_architectures(file_path):
    try:
        result = subprocess.run(
            ['file', file_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
            check=True
        )
        output = result.stdout.strip()
        return output.split(" ")[-1]
    except subprocess.CalledProcessError as e:
        return f"Error: {e.stderr.strip()}"



def get_find_results(directory, pattern):
    try:
        # Run the find command
        command = ['find', directory, '-name', pattern]
        print(" ".join(command))
        result = subprocess.run(command, 
                                check=True, 
                                text=True, 
                                capture_output=True)
        file_list = result.stdout.strip().split('\n')
        file_list = [f for f in file_list if f]
        return file_list

    except subprocess.CalledProcessError as e:
        return []


def find_candidates_for(lib_name, lib_dir, lib_arch, allow_different_arch: bool = True):
    lib_name, lib_ext = os.path.splitext(lib_name)
    lib_name_parts = lib_name.split('.')
    candidates = []
    for l in lib_dir: 
        print('parsing %s'%lib_name_parts)
        for i in reversed(range(1, len(lib_name_parts)+1)):
            results = get_find_results(l, ".".join(lib_name_parts[:i]) + "*" + lib_ext)
            if len(results) > 0:
                break
        candidates.extend(results)
    print("candidates before filtering : ", candidates)
    if len(candidates) == 0: 
        return [] 
    candidates_filt_arch = list(filter(lambda x: get_architectures(x) == lib_arch, candidates))
    if len(candidates_filt_arch) == 0:
        print('[Warning] Candidates found for %s, but with wrong architecture'%lib_name)
        if not allow_different_arch:
            return [] 
    else:
        candidates = candidates_filt_arch
    print(candidates)

    for i, c in enumerate(candidates):
        while os.path.islink(c):
            c = os.readlink(os.path.abspath(c))
            if not os.path.isabs(c):
                c = os.path.join(os.path.dirname(candidates[i]), c)
            candidates[i] = c
    return list(set(candidates))


def find_most_relevant_dylib_candidate(name, candidates, accept_weak_matching=False):
    name_ext = os.path.splitext(name)[1][1:]
    re_result = re.match(rf"^([\d\w_]+)\.?([\d\.]*)\.{name_ext}$", name)
    if re_result is None: 
        print(f'[Warning] Could not parse name {name} for dynamic lib retrieving ; taking first : {candidates[0]}')
        return candidates[0]
    lib_name, lib_version = re_result.groups()
    matching_name_and_version = []
    matching_name = []
    matching = []
    for c in candidates:
        c_name = os.path.basename(c)
        re_result = re.match(rf"^([\d\w_]+)\.?([\d\.]*)\.{name_ext}$", c_name)
        if re_result is not None:
            c_name, c_version = re_result.groups()
            if lib_name == c_name and c_version.startswith(lib_version):
                matching_name_and_version.append(c)
            elif lib_name == c_name: 
                matching_name.append(c)
            else:
                matching.append(c)
    if len(matching_name_and_version) > 0:
        return matching_name_and_version[0]
    elif len(matching_name) > 0: 
        print(f'[Warning] Could only find candidate with different version : {matching_name[0]}')
        return matching_name[0]
    else: 
        if accept_weak_matching:
            print(f'[Warning] Could only find weakly matching library : {matching[0]}')
            return matching[0]
        else:
            return None


def clean_rpath_for_target_executable(lib_path): 
    actions = []
    rpaths = extract_rpaths(lib_path, replace_dynamic_paths=False)
    for p in rpaths:
        if not str(p).startswith('@loader_path'): actions.append(['-delete_rpath', p, lib_path])
    return actions


def most_relevant_lib(lib_name, path_dicts, dep_paths=[], arch="arm64"):
    path_list = [Path(p['path']) for p in path_dicts]
    path_filtered_list = []
    for p in path_list:
        print('looking in %s...'%p)
        while os.path.islink(p):
            p = Path(p.parent / os.readlink(p)).resolve().absolute()
        if not p.exists(): continue
        if not is_executable(p): continue
        path_filtered_list.append(p)
    path_list = list(set(path_filtered_list))

    path_list = filter(lambda x: x.exists(), path_list)
    path_list = filter(lambda x: is_executable(x), path_list)
    path_list = list(path_list)
    if len(path_list) == 0:
        # not found; look for candidate
        candidates = find_candidates_for(f"{lib_name}.dylib", dep_paths, arch)
        candidate = find_most_relevant_dylib_candidate(f"{lib_name}.dylib", candidates)
        if candidate is None: 
            raise RuntimeError('no valid library found for %s in %s (candidates : %s)'%(lib_name, dep_paths, candidates))
        return candidate
    # find in priority the librairies given in arguments
    for libdir in map(Path, dep_paths):
        for path in path_list:
            if path.is_relative_to(libdir): return path
    return path_list[0]

def lib_from_exc_path(exc_path, lib_path):
    exc_parts = exc_path.parts
    lib_parts = lib_path.parts
    assert exc_parts[0] == lib_parts[0], "files do not have a single common root"
    i = 0
    while exc_parts[i] == lib_parts[i]:
        i+=1
    return os.path.join(*([".."] * (len(exc_parts[i:])-1) + list(lib_parts[i:])))

def parse_actions_from_executable(exec_path, dep_paths=[], main_dir = None, verbose=False):
    if not os.path.exists(exec_path):
        raise FileNotFoundError(exec_path)
    if verbose: print(f'parsing {str(exec_path)}...')
    libs_deps = {}
    libs_paths = {}
    libs_analysed = []
    libs_to_analyse = [exec_path]
    libs_hash = {}
    libs_hash_linked = {}

    arch = get_architectures(exec_path)
    # analyse dependencies
    while len(libs_to_analyse) != 0:
        if verbose: print('anlysing librairies %s'%libs_to_analyse)
        parsed_deps = []

        # fetch dependencies
        for current_lib in libs_to_analyse:
            if verbose: print('fetching dependencies from %s'%(current_lib))
            lib_deps = get_dependencies(current_lib, dir_filter=DEFAULT_EXCLUDE_PATHS_SOLVE, lib_filter=DEFAULT_EXCLUDE_LIBS)
            for dep_name, dep_params in lib_deps.items():
                parsed_deps.append(dep_name)
                libs_deps[dep_name] = libs_deps.get(dep_name, []) + [dep_params]
                libs_hash[get_library_name(dep_params['path'])] = libs_hash.get(get_library_name(dep_params['path']), []) + [dep_params['origin']]
                libs_hash_linked[get_library_name(dep_params['path'])] = libs_hash_linked.get(get_library_name(dep_params['path']), []) + [dep_params['linked']]
            del libs_to_analyse[libs_to_analyse.index(current_lib)]
            libs_analysed.append(get_library_name(current_lib))
         
        # parse dependencies
        for p in parsed_deps:
            if verbose: print('fetching paths for %s'%p)
            if p not in libs_paths:
                lib_path = most_relevant_lib(p, libs_deps[p], dep_paths, arch)
                print('found lib : %s'%lib_path)
                libs_paths[p] = Path(lib_path)
            if p not in libs_analysed:
                print('adding %s for parsing'%p)
                libs_to_analyse.append(libs_paths[p])

    actions = []
    exec_dir = exec_path.parent
    os.makedirs(str(main_dir.resolve()), exist_ok=True)
    for k, v in libs_paths.items():
        if not (main_dir / v.name).resolve().exists():
            actions.append(['copy', str(v), str(main_dir)])
    for k, v in libs_hash.items():
        for i, v_tmp in enumerate(v):
            # if str(libs_hash_linked[k][i]).startswith('@rpath'):
            #     continue
            if get_library_name(libs_hash_linked[k][i]) == get_library_name(v_tmp.name):
                if v_tmp.stem == exec_path.stem:
                    actions.append(['-id', f"@loader_path/{v_tmp.name}", str(exec_dir / v_tmp.name)])
                else:
                    actions.append(['-id', f"@loader_path/{v_tmp.name}", str(main_dir / v_tmp.name)])
            else:
                current_dep = str(libs_hash_linked[k][i]) 
                # new_dep = f"@loader_path/{libs_paths[get_library_name(current_dep)].name}"
                if v_tmp.stem == exec_path.stem:
                    new_dep = f"@loader_path/{lib_from_exc_path(exec_path, main_dir / libs_paths[get_library_name(current_dep)].name)}"
                    actions.append(['-change', current_dep, new_dep, str(exec_dir / v_tmp.name)])
                else:
                    new_dep = f"@loader_path/{libs_paths[get_library_name(current_dep)].name}"
                    actions.append(['-change', current_dep, new_dep, str(main_dir / v_tmp.name)])
    return actions


def perform_action(action, main_dir):
    try:
        if action[0] == "-change": 
            # Run the find command
            result = subprocess.run(['install_name_tool', 
                                     '-change', 
                                     action[1], 
                                     action[2], 
                                     action[3]],
                                    check=True, 
                                    text=True, 
                                    capture_output=False)
            return 
        elif action[0] == "-id":
            target_path = str(main_dir / os.path.split(action[1])[-1]) 
            result = subprocess.run(['install_name_tool', 
                                     '-id', 
                                     action[1], 
                                     target_path],
                                    check=True, 
                                    text=True, 
                                    capture_output=False)
        elif action[0] == "copy":
            target_path = main_dir / os.path.split(action[1])[-1]
            if not target_path.exists(): 
                result = subprocess.run(['cp',
                                    action[1],
                                    str(target_path)],  
                                    check=True, 
                                    text=True, 
                                    capture_output=False)
        elif action[0] == "-delete_rpath":
            target_path = str(main_dir / os.path.split(action[2])[-1]) 
            result = subprocess.run(['install_name_tool', 
                                     '-delete_rpath', 
                                     action[1], 
                                     target_path], 
                                    check=True, 
                                    text=True, 
                                    capture_output=False)
        elif action[0] == "-add_rpath":
            target_path = str(main_dir / os.path.split(action[2])[-1]) 
            result = subprocess.run(['install_name_tool', 
                                     '-add_rpath', 
                                     action[1], 
                                     target_path], 
                                    check=True, 
                                    text=True, 
                                    capture_outpu=False)
        elif action[0] == "clean_rpath":
            rpaths = extract_rpaths(str(main_dir / action[1]), replace_dynamic_paths=False)
            for r in rpaths: 
                try:
                    subprocess.run(['install_name_tool', '-delete_rpath', str(r), str(action[1])])
                except subprocess.SubprocessError as e: 
                    print("problem with clean_rpath : %s"%e)
                    pass

        else:
            print('[Warning] not known action : %s'%action) 

    except subprocess.CalledProcessError as e: 
        raise e


def print_action(idx, action):
    if action[0] == "copy":
        print(f'{idx:02d} cp {"|".join(action[1:])} -> @rpath')
    elif action[0] == "-change": 
        print(f"{idx:02d} -change: {os.path.basename(action[3])}: {action[1]}->{action[2]}")
    elif action[0] == "-id":
        print(f"{idx:02d} -id: {os.path.basename(action[1])}")
    elif action[0] == "-delete_rpath":
        print(f"{idx:02d} -delete_rpath: {action[1]} -> {action[2]}")
    elif action[0] == "clean_rpath": 
        print(f"{idx:02d} clean_rpath: {action[1]}")
    else:
        print(idx, action)


if __name__ == "__main__":
    exec_path = Path(args.path)
    main_dir = args.out_dir or args.path.parent 
    actions = parse_actions_from_executable(exec_path, args.lib_paths, main_dir, args.verbose)


    if args.safe:
        for i, a in enumerate(actions):
            print_action(i, a)
        print('continue?')
        answ = ""
        while answ.lower() not in ['y', 'n']:
            answ = input('[y/n] : ')
        if answ.lower() == "n": raise SystemExit("raised by user") 

    os.makedirs(str(main_dir.resolve()), exist_ok=True)
    for a in tqdm.tqdm(actions): 
        perform_action(a, main_dir = main_dir)

    if not args.noclean_rpath:
        for m in [os.path.join(main_dir, m) for m in os.listdir(main_dir)] + [args.path]:
            if is_executable(m):
                perform_action(['clean_rpath', m], main_dir)


    if args.sign_id == "": args.sign_id = "-"
    for m in [os.path.join(main_dir, m) for m in os.listdir(main_dir)] + [args.path]:
        try:
            subprocess.run(['chmod', '+x', m])
            subprocess.run(['codesign', '--deep', '--force', '--options=runtime', '--sign', args.sign_id, m])
            subprocess.run(["xattr", "-r", "-d", "com.apple.quarantine", m])
        except subprocess.CalledProcessError as e: 
            print(f'Could not chmod / codesign file {m} ; codesign needed')
                

================================================
FILE: install/macos_max_makeub.sh
================================================
TARGET_DIR=$1
if [ -z $TARGET_DIR ]; then
    TARGET_DIR="nn_tilde"
fi

echo "${TARGET_DIR}"

if [[ ! -d "${TARGET_DIR}_arm64" ]]; then
    echo "[Error] folder ${TARGET_DIR}_arm64 not found" 
    exit
fi

if [[ ! -d "${TARGET_DIR}_x64" ]]; then
    echo "[Error] folder ${TARGET_DIR}_arm64 not found" 
    exit
fi

if [[ ! -d "${TARGET_DIR}" ]]; then
    cp -r ${TARGET_DIR}_arm64 ${TARGET_DIR}
fi 

for i in $(find ${TARGET_DIR}_x64/externals/*/Contents/MacOS -type f -perm -111) 
do 
    echo "UBing file $i..."
    lipo -create "${TARGET_DIR}_arm64/externals/$(basename $i).mxo/Contents/MacOS/$(basename $i)" "${TARGET_DIR}_x64/externals/$(basename $i).mxo/Contents/MacOS/$(basename $i)" -output "${TARGET_DIR}/externals/$(basename $i).mxo/Contents/MacOS/$(basename $i)"
done

for i in $(find ${TARGET_DIR}_x64/support/*.dylib)
do 
    arch1=""
    arch2=""
    if [[ ! -f "${TARGET_DIR}_x64/support/$(basename $i)" || ! -f "${TARGET_DIR}_arm64/support/$(basename $i)" ]]
    then 
        echo "skipping $i"
        continue
    fi
    is_ub=$(file "${TARGET_DIR}_x64/support/$(basename $i)" | grep -Eo '2 architectures')
    if [[ -n "$is_ub" ]]; then
        echo "$i / universal binary; skipping"
        continue
    fi
    arch1=$(file -b "${TARGET_DIR}_x64/support/$(basename $i)" | grep -Eo 'x86_64|arm64')
    arch2=$(file -b "${TARGET_DIR}_arm64/support/$(basename $i)" | grep -Eo 'x86_64|arm64')
    if [[ -z "$arch1" || -z "$arch2" ]]; then
        echo "skipping $i"
        continue
    fi
    if [[ ! "$arch1" == "$arch2" ]]; then
        echo "$i / arch1 : $arch1; arch2 : $arch2"
        lipo -create "${TARGET_DIR}_arm64/support/$(basename $i)" "${TARGET_DIR}_x64/support/$(basename $i)" -output "${TARGET_DIR}/support/$(basename $i)"
    fi
done


================================================
FILE: install/macos_pd_makeub.sh
================================================
TARGET_DIR=$1
if [ -z $TARGET_DIR ]; then
    TARGET_DIR="nn_tilde"
fi

echo "${TARGET_DIR}"

if [[ ! -d "${TARGET_DIR}_arm64" ]]; then
    echo "[Error] folder ${TARGET_DIR}_arm64 not found" 
    exit
fi

if [[ ! -d "${TARGET_DIR}_x64" ]]; then
    echo "[Error] folder ${TARGET_DIR}_arm64 not found" 
    exit
fi

if [[ ! -d "${TARGET_DIR}" ]]; then
    cp -r ${TARGET_DIR}_arm64 ${TARGET_DIR}
fi 

lipo -create "${TARGET_DIR}_arm64/nn~.pd_darwin" "${TARGET_DIR}_x64/nn~.pd_darwin" -output "${TARGET_DIR}/nn~.pd_darwin"

for i in $(find ${TARGET_DIR}_x64/*.dylib)
do 
    arch1=""
    arch2=""
    if [[ ! -f "${TARGET_DIR}_x64$(basename $i)" || ! -f "${TARGET_DIR}_arm64/$(basename $i)" ]]
    then 
        echo "skipping $i"
        continue
    fi
    is_ub=$(file "${TARGET_DIR}_x64/$(basename $i)" | grep -Eo '2 architectures')
    if [[ -n "$is_ub" ]]; then
        echo "$i / universal binary; skipping"
        continue
    fi
    arch1=$(file -b "${TARGET_DIR}_x64/$(basename $i)" | grep -Eo 'x86_64|arm64')
    arch2=$(file -b "${TARGET_DIR}_arm64/$(basename $i)" | grep -Eo 'x86_64|arm64')
    if [[ -z "$arch1" || -z "$arch2" ]]; then
        echo "skipping $i"
        continue
    fi
    if [[ ! "$arch1" == "$arch2" ]]; then
        echo "$i / arch1 : $arch1; arch2 : $arch2"
        lipo -create "${TARGET_DIR}_arm64/$(basename $i)" "${TARGET_DIR}_x64/$(basename $i)" -output "${TARGET_DIR}/$(basename $i)"
    fi
done


================================================
FILE: install/max-linker-flags.txt
================================================
'-Wl,-U,_addbang' '-Wl,-U,_addfloat' '-Wl,-U,_addftx' '-Wl,-U,_addint' '-Wl,-U,_addinx' '-Wl,-U,_addmess' '-Wl,-U,_advise' '-Wl,-U,_advise_explain' '-Wl,-U,_alias' '-Wl,-U,_AnyKeyDown' '-Wl,-U,_appbuilder_keyword' '-Wl,-U,_appbuilder_register' '-Wl,-U,_argpad' '-Wl,-U,_assist_string' '-Wl,-U,_asyncfile_callback_free' '-Wl,-U,_asyncfile_callback_new' '-Wl,-U,_asyncfile_close' '-Wl,-U,_asyncfile_create' '-Wl,-U,_asyncfile_geteof' '-Wl,-U,_asyncfile_makerequest' '-Wl,-U,_asyncfile_object_method' '-Wl,-U,_asyncfile_params_default' '-Wl,-U,_asyncfile_params_free' '-Wl,-U,_asyncfile_params_new' '-Wl,-U,_asyncfile_read' '-Wl,-U,_asyncfile_seteof' '-Wl,-U,_asyncfile_write' '-Wl,-U,_atom_alloc' '-Wl,-U,_atom_alloc_array' '-Wl,-U,_atom_arg_getdouble' '-Wl,-U,_atom_arg_getfloat' '-Wl,-U,_atom_arg_getlong' '-Wl,-U,_atom_arg_getsym' '-Wl,-U,_atom_dynamic_end' '-Wl,-U,_atom_dynamic_start' '-Wl,-U,_atom_equal' '-Wl,-U,_atom_getatom_array' '-Wl,-U,_atom_getchar_array' '-Wl,-U,_atom_getcharfix' '-Wl,-U,_atom_getdouble_array' '-Wl,-U,_atom_getfloat' '-Wl,-U,_atom_getfloat_array' '-Wl,-U,_atom_getformat' '-Wl,-U,_atom_getlong' '-Wl,-U,_atom_getlong_array' '-Wl,-U,_atom_getobj' '-Wl,-U,_atom_getobj_array' '-Wl,-U,_atom_getsym' '-Wl,-U,_atom_getsym_array' '-Wl,-U,_atom_gettext' '-Wl,-U,_atom_gettext_precision' '-Wl,-U,_atom_gettype' '-Wl,-U,_atom_setatom_array' '-Wl,-U,_atom_setattrval' '-Wl,-U,_atom_setbinbuf' '-Wl,-U,_atom_setchar_array' '-Wl,-U,_atom_setdouble_array' '-Wl,-U,_atom_setfloat' '-Wl,-U,_atom_setfloat_array' '-Wl,-U,_atom_setformat' '-Wl,-U,_atom_setlong' '-Wl,-U,_atom_setlong_array' '-Wl,-U,_atom_setobj' '-Wl,-U,_atom_setobj_array' '-Wl,-U,_atom_setobjval' '-Wl,-U,_atom_setparse' '-Wl,-U,_atom_setsym' '-Wl,-U,_atom_setsym_array' '-Wl,-U,_atom_string' '-Wl,-U,_atombuf_append' '-Wl,-U,_atombuf_count' '-Wl,-U,_atombuf_eval' '-Wl,-U,_atombuf_firstatom' '-Wl,-U,_atombuf_free' '-Wl,-U,_atombuf_misc' '-Wl,-U,_atombuf_new' '-Wl,-U,_atombuf_next' '-Wl,-U,_atombuf_prepend' '-Wl,-U,_atombuf_replace' '-Wl,-U,_atombuf_replacepoundargs' '-Wl,-U,_atombuf_save' '-Wl,-U,_atombuf_set' '-Wl,-U,_atombuf_subst' '-Wl,-U,_atombuf_text' '-Wl,-U,_atombuf_totext' '-Wl,-U,_atomisatomarray' '-Wl,-U,_atomisdictionary' '-Wl,-U,_atomisstring' '-Wl,-U,_atoms_totext' '-Wl,-U,_attr_addfilter_clip' '-Wl,-U,_attr_addfilter_clip_scale' '-Wl,-U,_attr_addfilterget_clip' '-Wl,-U,_attr_addfilterget_clip_scale' '-Wl,-U,_attr_addfilterget_proc' '-Wl,-U,_attr_addfilterset_clip' '-Wl,-U,_attr_addfilterset_clip_scale' '-Wl,-U,_attr_addfilterset_proc' '-Wl,-U,_attr_args_dictionary' '-Wl,-U,_attr_args_offset' '-Wl,-U,_attr_args_process' '-Wl,-U,_attr_args_process_flags' '-Wl,-U,_attr_dictionary_process' '-Wl,-U,_attr_dictionary_check' '-Wl,-U,_attr_filter_clip_new' '-Wl,-U,_attr_filter_proc_new' '-Wl,-U,_attr_offset_array_new' '-Wl,-U,_attr_offset_new' '-Wl,-U,_attr_typedfun_set' '-Wl,-U,_attribute_new' '-Wl,-U,_attribute_new_sym' '-Wl,-U,_attribute_new_long' '-Wl,-U,_attribute_new_float' '-Wl,-U,_attribute_new_obj' '-Wl,-U,_attribute_new_atoms' '-Wl,-U,_attribute_new_attrval' '-Wl,-U,_attribute_new_binbuf' '-Wl,-U,_attribute_new_format' '-Wl,-U,_attribute_new_objval' '-Wl,-U,_attribute_new_parse' '-Wl,-U,_auxtable_checksym' '-Wl,-U,_bangout' '-Wl,-U,_bf_singlefast' '-Wl,-U,_binbuf_addtext' '-Wl,-U,_binbuf_append' '-Wl,-U,_binbuf_delete' '-Wl,-U,_binbuf_eval' '-Wl,-U,_binbuf_getatom' '-Wl,-U,_binbuf_gethandle' '-Wl,-U,_binbuf_insert' '-Wl,-U,_binbuf_inshandle' '-Wl,-U,_binbuf_make' '-Wl,-U,_binbuf_new' '-Wl,-U,_binbuf_read' '-Wl,-U,_binbuf_set' '-Wl,-U,_binbuf_text' '-Wl,-U,_binbuf_totext' '-Wl,-U,_binbuf_vinsert' '-Wl,-U,_binbuf_write' '-Wl,-U,_bitwrap_bell_filter' '-Wl,-U,_bitwrap_box_filter' '-Wl,-U,_bitwrap_bspline_filter' '-Wl,-U,_bitwrap_filter_default' '-Wl,-U,_bitwrap_filter_filter' '-Wl,-U,_bitwrap_interp' '-Wl,-U,_bitwrap_lanczos3_filter' '-Wl,-U,_bitwrap_mitchell_filter' '-Wl,-U,_bitwrap_triangle_filter' '-Wl,-U,_bitwrap_wrap_gworld' '-Wl,-U,_box_getcolor' '-Wl,-U,_boxcolor_rgb2index' '-Wl,-U,_call_method_attrval' '-Wl,-U,_call_method_binbuf' '-Wl,-U,_call_method_char' '-Wl,-U,_call_method_char_array' '-Wl,-U,_call_method_double' '-Wl,-U,_call_method_double_array' '-Wl,-U,_call_method_float' '-Wl,-U,_call_method_float_array' '-Wl,-U,_call_method_format' '-Wl,-U,_call_method_long' '-Wl,-U,_call_method_long_array' '-Wl,-U,_call_method_obj' '-Wl,-U,_call_method_obj_array' '-Wl,-U,_call_method_objval' '-Wl,-U,_call_method_parse' '-Wl,-U,_call_method_sym' '-Wl,-U,_call_method_sym_array' '-Wl,-U,_call_method_typed' '-Wl,-U,_charset_convert' '-Wl,-U,_charset_utf8tounicode' '-Wl,-U,_charset_unicodetoutf8' '-Wl,-U,_charset_isvalidutf8' '-Wl,-U,_charset_utf8_count' '-Wl,-U,_charset_utf8_offset' '-Wl,-U,_charset_isspace' '-Wl,-U,_class_addadornment' '-Wl,-U,_class_addattr' '-Wl,-U,_class_addattr_atoms' '-Wl,-U,_class_addattr_atoms' '-Wl,-U,_class_addattr_format' '-Wl,-U,_class_addattr_format' '-Wl,-U,_class_addattr_parse' '-Wl,-U,_class_addattr_parse' '-Wl,-U,_class_addcommand' '-Wl,-U,_class_addmethod' '-Wl,-U,_class_addtypedwrapper' '-Wl,-U,_class_addtransform' '-Wl,-U,_class_adornment_get' '-Wl,-U,_class_attr_addattr' '-Wl,-U,_class_attr_addattr_atoms' '-Wl,-U,_class_attr_addattr_atoms' '-Wl,-U,_class_attr_addattr_format' '-Wl,-U,_class_attr_addattr_format' '-Wl,-U,_class_attr_addattr_parse' '-Wl,-U,_class_attr_addattr_parse' '-Wl,-U,_class_attr_attr_get' '-Wl,-U,_class_attr_attr_getvalueof' '-Wl,-U,_class_attr_attr_setvalueof' '-Wl,-U,_class_attr_get' '-Wl,-U,_class_attr_method' '-Wl,-U,_class_buildprototype' '-Wl,-U,_class_clonable' '-Wl,-U,_class_cloneprototype' '-Wl,-U,_class_extra_lookup' '-Wl,-U,_class_extra_store' '-Wl,-U,_class_extra_storeflags' '-Wl,-U,_class_findbyname' '-Wl,-U,_class_findbyname_casefree' '-Wl,-U,_class_getifloaded' '-Wl,-U,_class_getifloaded_casefree' '-Wl,-U,_class_free' '-Wl,-U,_class_getmethod_object' '-Wl,-U,_class_getpath' '-Wl,-U,_class_is_ui' '-Wl,-U,_class_is_box' '-Wl,-U,_class_mess' '-Wl,-U,_class_method' '-Wl,-U,_class_nameget' '-Wl,-U,_class_new' '-Wl,-U,_class_noinlet' '-Wl,-U,_class_obexoffset_get' '-Wl,-U,_class_obexoffset_set' '-Wl,-U,_class_register' '-Wl,-U,_class_alias' '-Wl,-U,_class_copy' '-Wl,-U,_class_dumpout_wrap' '-Wl,-U,_class_setname' '-Wl,-U,_class_namespace_fromsym' '-Wl,-U,_class_namespace_getclassnames' '-Wl,-U,_class_setpath' '-Wl,-U,_class_sticky' '-Wl,-U,_class_sticky_clear' '-Wl,-U,_class_typedwrapper_get' '-Wl,-U,_classname_openhelp' '-Wl,-U,_classname_openrefpage' '-Wl,-U,_classname_openquery' '-Wl,-U,_clock_delay' '-Wl,-U,_clock_fdelay' '-Wl,-U,_clock_fdelay2' '-Wl,-U,_clock_fset' '-Wl,-U,_clock_fset2' '-Wl,-U,_clock_getextfmt' '-Wl,-U,_clock_getftime' '-Wl,-U,_clock_getftime_nocache' '-Wl,-U,_clock_new' '-Wl,-U,_clock_new_withscheduler' '-Wl,-U,_clock_set' '-Wl,-U,_clock_unset' '-Wl,-U,_clock_xdelay' '-Wl,-U,_clock_xset' '-Wl,-U,_clock_xunset' '-Wl,-U,_clock_setowner' '-Wl,-U,_CmdKeyDown' '-Wl,-U,_compression_compressjson_headless' '-Wl,-U,_compression_decompressjson_headless' '-Wl,-U,_connection_client' '-Wl,-U,_connection_delete' '-Wl,-U,_connection_send' '-Wl,-U,_connection_server' '-Wl,-U,_CopyFromGWorld' '-Wl,-U,_cpost' '-Wl,-U,_critical_enter' '-Wl,-U,_critical_exit' '-Wl,-U,_critical_free' '-Wl,-U,_critical_new' '-Wl,-U,_critical_tryenter' '-Wl,-U,_crosshatch' '-Wl,-U,_CtrlKeyDown' '-Wl,-U,_CurrentOptionKeysDown' '-Wl,-U,_debug_printf' '-Wl,-U,_defer' '-Wl,-U,_defer_front' '-Wl,-U,_defer_low' '-Wl,-U,_defer_medium' '-Wl,-U,_defer_sys_low' '-Wl,-U,_defvolume' '-Wl,-U,_dialog_setkey' '-Wl,-U,_dictionary_appendatom' '-Wl,-U,_dictionary_appendatom_flags' '-Wl,-U,_dictionary_appendatomarray' '-Wl,-U,_dictionary_appendatoms' '-Wl,-U,_dictionary_appendatoms_flags' '-Wl,-U,_dictionary_appendattribute' '-Wl,-U,_dictionary_appendbinbuf' '-Wl,-U,_dictionary_appenddictionary' '-Wl,-U,_dictionary_appendfloat' '-Wl,-U,_dictionary_appendlong' '-Wl,-U,_dictionary_appendobject' '-Wl,-U,_dictionary_appendobject_flags' '-Wl,-U,_dictionary_appendstring' '-Wl,-U,_dictionary_appendsym' '-Wl,-U,_dictionary_chuckentry' '-Wl,-U,_dictionary_clear' '-Wl,-U,_dictionary_copyatoms' '-Wl,-U,_dictionary_copyatoms_ext' '-Wl,-U,_dictionary_copydefatoms' '-Wl,-U,_dictionary_copyentries' '-Wl,-U,_dictionary_copyunique' '-Wl,-U,_dictionary_deleteentry' '-Wl,-U,_dictionary_dump' '-Wl,-U,_dictionary_entry_getkey' '-Wl,-U,_dictionary_entry_getvalue' '-Wl,-U,_dictionary_entry_getvalues' '-Wl,-U,_dictionary_entryisatomarray' '-Wl,-U,_dictionary_entryisdictionary' '-Wl,-U,_dictionary_entryisstring' '-Wl,-U,_dictionary_freekeys' '-Wl,-U,_dictionary_funall' '-Wl,-U,_dictionary_getatom' '-Wl,-U,_dictionary_getatom_ext' '-Wl,-U,_dictionary_getatomarray' '-Wl,-U,_dictionary_getatoms' '-Wl,-U,_dictionary_getatoms_ext' '-Wl,-U,_dictionary_getattribute' '-Wl,-U,_dictionary_getdefatom' '-Wl,-U,_dictionary_getdefatoms' '-Wl,-U,_dictionary_getdeffloat' '-Wl,-U,_dictionary_getdeflong' '-Wl,-U,_dictionary_getdefstring' '-Wl,-U,_dictionary_getdefsym' '-Wl,-U,_dictionary_getdictionary' '-Wl,-U,_dictionary_getentrycount' '-Wl,-U,_dictionary_getfloat' '-Wl,-U,_dictionary_getkeys' '-Wl,-U,_dictionary_getkeys_ordered' '-Wl,-U,_dictionary_getlong' '-Wl,-U,_dictionary_getobject' '-Wl,-U,_dictionary_getobject_ext' '-Wl,-U,_dictionary_getstring' '-Wl,-U,_dictionary_getsym' '-Wl,-U,_dictionary_get_ex' '-Wl,-U,_dictionary_hasentry' '-Wl,-U,_dictionary_new' '-Wl,-U,_dictionary_prototypefromclass' '-Wl,-U,_dictionary_read' '-Wl,-U,_dictionary_sprintf' '-Wl,-U,_dictionary_write' '-Wl,-U,_dictobj_register' '-Wl,-U,_dictobj_unregister' '-Wl,-U,_dictobj_findregistered_clone' '-Wl,-U,_dictobj_findregistered_retain' '-Wl,-U,_dictobj_release' '-Wl,-U,_dictobj_namefromptr' '-Wl,-U,_dictobj_outlet_atoms' '-Wl,-U,_dictobj_atom_safety' '-Wl,-U,_dictobj_atom_safety_flags' '-Wl,-U,_dictobj_atom_release' '-Wl,-U,_dictobj_validate' '-Wl,-U,_dictobj_jsonfromstring' '-Wl,-U,_dictobj_dictionaryfromstring' '-Wl,-U,_dictobj_dictionaryfromatoms' '-Wl,-U,_dictobj_dictionaryfromatoms_extended' '-Wl,-U,_dictobj_dictionarytoatoms' '-Wl,-U,_dictobj_key_parse' '-Wl,-U,_dictobj_modify' '-Wl,-U,_dictobj_convertatoms' '-Wl,-U,_dictobj_convertatoms2' '-Wl,-U,_dictobj_atomtotype' '-Wl,-U,_dictobj_outlet_atoms_prefix' '-Wl,-U,_dictobj_outlet_atoms_prefix_ext' '-Wl,-U,_arrayobj_register' '-Wl,-U,_arrayobj_unregister' '-Wl,-U,_arrayobj_findregistered_retain' '-Wl,-U,_arrayobj_findregistered_clone' '-Wl,-U,_arrayobj_release' '-Wl,-U,_arrayobj_namefromptr' '-Wl,-U,_stringobj_register' '-Wl,-U,_stringobj_unregister' '-Wl,-U,_stringobj_findregistered_retain' '-Wl,-U,_stringobj_findregistered_clone' '-Wl,-U,_stringobj_release' '-Wl,-U,_stringobj_namefromptr' '-Wl,-U,_disposhandle' '-Wl,-U,_drawstr' '-Wl,-U,_ed_new' '-Wl,-U,_ed_settext' '-Wl,-U,_ed_vis' '-Wl,-U,_egetfn' '-Wl,-U,_error' '-Wl,-U,_error_subscribe' '-Wl,-U,_error_sym' '-Wl,-U,_error_unsubscribe' '-Wl,-U,_errorcount_get' '-Wl,-U,_errorcount_set' '-Wl,-U,_evnum_get' '-Wl,-U,_evnum_incr' '-Wl,-U,_expr_eval' '-Wl,-U,_expr_new' '-Wl,-U,_fileformat_filetype' '-Wl,-U,_fileformat_installsniffer' '-Wl,-U,_fileformat_sniff' '-Wl,-U,_fileformat_sniffdata' '-Wl,-U,_fileformat_stripsuffix' '-Wl,-U,_fileformat_typesuffix' '-Wl,-U,_fileformat_suffixtotype' '-Wl,-U,_fileformat_suffix' '-Wl,-U,_fileformat_divide' '-Wl,-U,_fileformat_cstrtofiletype' '-Wl,-U,_fileformat_symtofiletype' '-Wl,-U,_fileformat_filetypetosym' '-Wl,-U,_fileformat_typetosuffix' '-Wl,-U,_filekind_getfiletypes' '-Wl,-U,_filekind_getname' '-Wl,-U,_filekind_nametoicon' '-Wl,-U,_fileload' '-Wl,-U,_fileload_extended' '-Wl,-U,_fileload_type' '-Wl,-U,_fileusage_addfile' '-Wl,-U,_fileusage_addfilename' '-Wl,-U,_fileusage_addpackage' '-Wl,-U,_fileusage_addpathname' '-Wl,-U,_fileusage_copyfolder' '-Wl,-U,_fileusage_makefolder' '-Wl,-U,_fileusage_addfolder' '-Wl,-U,_filewatcher_new' '-Wl,-U,_filewatcher_start' '-Wl,-U,_filewatcher_stop' '-Wl,-U,_finder_addclass' '-Wl,-U,_floatin' '-Wl,-U,_floatout' '-Wl,-U,_fontinfo_getname' '-Wl,-U,_fontinfo_getnumber' '-Wl,-U,_fontinfo_getsize' '-Wl,-U,_fontmap_getmapping' '-Wl,-U,_force_install' '-Wl,-U,_freebytes' '-Wl,-U,_freeobject' '-Wl,-U,_gensym' '-Wl,-U,_gensym_tr' '-Wl,-U,_getbytes' '-Wl,-U,_getexttime' '-Wl,-U,_getfn' '-Wl,-U,_getfolder' '-Wl,-U,_getschedtime' '-Wl,-U,_gettime' '-Wl,-U,_gettime_forobject' '-Wl,-U,_globalmouse_addlistener' '-Wl,-U,_globalmouse_removelistener' '-Wl,-U,_globalsymbol_reference' '-Wl,-U,_globalsymbol_dereference' '-Wl,-U,_globalsymbol_bind' '-Wl,-U,_globalsymbol_unbind' '-Wl,-U,_globalsymbol_notify' '-Wl,-U,_growhandle' '-Wl,-U,_GWorldFromPict' '-Wl,-U,_handle2tempfile' '-Wl,-U,_hashtab_chuck' '-Wl,-U,_hashtab_chuckkey' '-Wl,-U,_hashtab_clear' '-Wl,-U,_hashtab_delete' '-Wl,-U,_hashtab_findfirst' '-Wl,-U,_hashtab_flags' '-Wl,-U,_hashtab_funall' '-Wl,-U,_hashtab_getflags' '-Wl,-U,_hashtab_getkeyflags' '-Wl,-U,_hashtab_getkeys' '-Wl,-U,_hashtab_getsize' '-Wl,-U,_hashtab_keyflags' '-Wl,-U,_hashtab_lookup' '-Wl,-U,_hashtab_lookupentry' '-Wl,-U,_hashtab_lookupflags' '-Wl,-U,_hashtab_lookuplong' '-Wl,-U,_hashtab_lookupsym' '-Wl,-U,_hashtab_methodall' '-Wl,-U,_hashtab_methodall_imp' '-Wl,-U,_hashtab_new' '-Wl,-U,_hashtab_objfunall' '-Wl,-U,_hashtab_print' '-Wl,-U,_hashtab_readonly' '-Wl,-U,_hashtab_store' '-Wl,-U,_hashtab_store_safe' '-Wl,-U,_hashtab_storeflags' '-Wl,-U,_hashtab_storelong' '-Wl,-U,_hashtab_storesym' '-Wl,-U,_helpstring' '-Wl,-U,_inisr_set' '-Wl,-U,_inlet_append' '-Wl,-U,_inlet_insert_after' '-Wl,-U,_inlet_count' '-Wl,-U,_inlet_new' '-Wl,-U,_inlet_nth' '-Wl,-U,_inlet_to' '-Wl,-U,_inlet4' '-Wl,-U,_inspector_open' '-Wl,-U,_intin' '-Wl,-U,_intload' '-Wl,-U,_intout' '-Wl,-U,_IsKeyDown' '-Wl,-U,_isbpatcher' '-Wl,-U,_isnewex' '-Wl,-U,_ispatcher' '-Wl,-U,_isr' '-Wl,-U,_isr_set' '-Wl,-U,_linklist_append' '-Wl,-U,_linklist_chuck' '-Wl,-U,_linklist_chuckindex' '-Wl,-U,_linklist_chuckptr' '-Wl,-U,_linklist_clear' '-Wl,-U,_linklist_deleteindex' '-Wl,-U,_linklist_findall' '-Wl,-U,_linklist_findfirst' '-Wl,-U,_linklist_flags' '-Wl,-U,_linklist_funall' '-Wl,-U,_linklist_funall_break' '-Wl,-U,_linklist_funindex' '-Wl,-U,_linklist_getflags' '-Wl,-U,_linklist_getindex' '-Wl,-U,_linklist_getsize' '-Wl,-U,_linklist_insert_sorted' '-Wl,-U,_linklist_insertafterobjptr' '-Wl,-U,_linklist_insertbeforeobjptr' '-Wl,-U,_linklist_insertindex' '-Wl,-U,_linklist_last' '-Wl,-U,_linklist_makearray' '-Wl,-U,_linklist_methodall' '-Wl,-U,_linklist_methodall_imp' '-Wl,-U,_linklist_methodindex' '-Wl,-U,_linklist_methodindex_imp' '-Wl,-U,_linklist_moveafterobjptr' '-Wl,-U,_linklist_movebeforeobjptr' '-Wl,-U,_linklist_new' '-Wl,-U,_linklist_next' '-Wl,-U,_linklist_objptr2index' '-Wl,-U,_linklist_prev' '-Wl,-U,_linklist_readonly' '-Wl,-U,_linklist_reverse' '-Wl,-U,_linklist_rotate' '-Wl,-U,_linklist_shuffle' '-Wl,-U,_linklist_sort' '-Wl,-U,_linklist_substitute' '-Wl,-U,_linklist_swap' '-Wl,-U,_linklist_match' '-Wl,-U,_linklist_chuckobject' '-Wl,-U,_linklist_deleteobject' '-Wl,-U,_linklist_prune' '-Wl,-U,_listout' '-Wl,-U,_loadbang_disabled' '-Wl,-U,_loadbang_dequeue' '-Wl,-U,_loadbang_queueobject' '-Wl,-U,_loadbang_resume' '-Wl,-U,_loadbang_suspend' '-Wl,-U,_loader_setpath' '-Wl,-U,_locatefile' '-Wl,-U,_locatefile_extended' '-Wl,-U,_locatefilelist' '-Wl,-U,_locatefiletype' '-Wl,-U,_lockout_set' '-Wl,-U,_lowload_jpatcher_frombuffer' '-Wl,-U,_lowload_jpatcher_frombuffer_withobexprototype' '-Wl,-U,_lowload_jpatcher_fromamxd_data' '-Wl,-U,_loader_loadamxd_tohandle' '-Wl,-U,_maxlogger_log' '-Wl,-U,_maxversion' '-Wl,-U,_max_unicodekeydown' '-Wl,-U,_max_unicodekeyup' '-Wl,-U,_maxcache_getpath' '-Wl,-U,_maxcache_checkfile' '-Wl,-U,_maxcache_usefile' '-Wl,-U,_maxdb_search' '-Wl,-U,_maxdb_search_sprintf' '-Wl,-U,_maxdb_tag' '-Wl,-U,_maxdb_filter' '-Wl,-U,_maxdb_getstate' '-Wl,-U,_maxdb_query' '-Wl,-U,_maxdb_query_direct' '-Wl,-U,_mayquote' '-Wl,-U,_method_false' '-Wl,-U,_method_object_free' '-Wl,-U,_method_object_getmesslist' '-Wl,-U,_method_object_getmethod' '-Wl,-U,_method_object_getname' '-Wl,-U,_method_object_new' '-Wl,-U,_method_object_new_messlist' '-Wl,-U,_method_object_setmesslist' '-Wl,-U,_method_object_setmethod' '-Wl,-U,_method_object_setname' '-Wl,-U,_method_true' '-Wl,-U,_mfl_guiidle' '-Wl,-U,_mfl_idle' '-Wl,-U,_mfl_init' '-Wl,-U,_mfl_exit' '-Wl,-U,_path_mfl_getapppath' '-Wl,-U,_movecursor' '-Wl,-U,_namedpipeconnection_isconnected' '-Wl,-U,_nameinpath' '-Wl,-U,_nameload' '-Wl,-U,_nameload_unique' '-Wl,-U,_nameload_unique_internal' '-Wl,-U,_nametab_filename' '-Wl,-U,_nametab_getmatches' '-Wl,-U,_newex_knows' '-Wl,-U,_newhandle' '-Wl,-U,_newinstance' '-Wl,-U,_newobject' '-Wl,-U,_newobject_fromdictionary' '-Wl,-U,_newobject_fromboxtext' '-Wl,-U,_newobject_sprintf' '-Wl,-U,_noloadbangdisable_get' '-Wl,-U,_noloadbangdisable_set' '-Wl,-U,_notify_free' '-Wl,-U,_nullfn' '-Wl,-U,_object_addattr' '-Wl,-U,_object_addattr_atoms' '-Wl,-U,_object_addattr_atoms' '-Wl,-U,_object_addattr_format' '-Wl,-U,_object_addattr_format' '-Wl,-U,_object_addattr_parse' '-Wl,-U,_object_addattr_parse' '-Wl,-U,_object_addmethod' '-Wl,-U,_object_alloc' '-Wl,-U,_object_attach' '-Wl,-U,_object_attach_byptr' '-Wl,-U,_object_attach_byptr_register' '-Wl,-U,_object_attr_addattr' '-Wl,-U,_object_attr_addattr_atoms' '-Wl,-U,_object_attr_addattr_atoms' '-Wl,-U,_object_attr_addattr_format' '-Wl,-U,_object_attr_addattr_format' '-Wl,-U,_object_attr_addattr_parse' '-Wl,-U,_object_attr_addattr_parse' '-Wl,-U,_object_attr_attr_get' '-Wl,-U,_object_attr_attr_getvalueof' '-Wl,-U,_object_attr_attr_setvalueof' '-Wl,-U,_object_attr_enforcelocal' '-Wl,-U,_object_attr_freeze' '-Wl,-U,_object_attr_get' '-Wl,-U,_object_attr_getchar' '-Wl,-U,_object_attr_getchar_array' '-Wl,-U,_object_attr_getdisabled' '-Wl,-U,_object_attr_getdouble_array' '-Wl,-U,_object_attr_getdump' '-Wl,-U,_object_attr_getfloat' '-Wl,-U,_object_attr_getfloat_array' '-Wl,-U,_object_attr_getinvisible' '-Wl,-U,_object_attr_getlong' '-Wl,-U,_object_attr_getlong_array' '-Wl,-U,_object_attr_getnames' '-Wl,-U,_object_attr_getobj' '-Wl,-U,_object_attr_getsym' '-Wl,-U,_object_attr_getsym_array' '-Wl,-U,_object_attr_getvalueof' '-Wl,-U,_object_attr_method' '-Wl,-U,_object_attr_setattrval' '-Wl,-U,_object_attr_setbinbuf' '-Wl,-U,_object_attr_setchar' '-Wl,-U,_object_attr_setchar_array' '-Wl,-U,_object_attr_setdisabled' '-Wl,-U,_object_attr_setdouble_array' '-Wl,-U,_object_attr_setfloat' '-Wl,-U,_object_attr_setfloat_array' '-Wl,-U,_object_attr_setformat' '-Wl,-U,_object_attr_setinvisible' '-Wl,-U,_object_attr_setlong' '-Wl,-U,_object_attr_setlong_array' '-Wl,-U,_object_attr_setobj' '-Wl,-U,_object_attr_setobjval' '-Wl,-U,_object_attr_setparse' '-Wl,-U,_object_attr_setsym' '-Wl,-U,_object_attr_setsym_array' '-Wl,-U,_object_attr_setvalueof' '-Wl,-U,_object_attr_usercanget' '-Wl,-U,_object_attr_usercanset' '-Wl,-U,_object_attr_getdirty' '-Wl,-U,_object_attrhash_apply' '-Wl,-U,_object_bug' '-Wl,-U,_object_chuckattr' '-Wl,-U,_object_chuckmethod' '-Wl,-U,_object_class' '-Wl,-U,_object_classname' '-Wl,-U,_object_namespace' '-Wl,-U,_class_namespace' '-Wl,-U,_object_classname_compare' '-Wl,-U,_object_clonable' '-Wl,-U,_object_clone' '-Wl,-U,_object_clone_generic' '-Wl,-U,_object_commandenabled' '-Wl,-U,_object_deleteattr' '-Wl,-U,_object_deletemethod' '-Wl,-U,_object_detach' '-Wl,-U,_object_detach_byptr' '-Wl,-U,_object_dictionary_fromnewargs' '-Wl,-U,_object_dictionaryarg' '-Wl,-U,_object_error' '-Wl,-U,_object_error_obtrusive' '-Wl,-U,_jpatcher_error_obtrusive' '-Wl,-U,_object_findregistered' '-Wl,-U,_object_findregisteredbyptr' '-Wl,-U,_object_free' '-Wl,-U,_object_getattrlist' '-Wl,-U,_object_getcommand' '-Wl,-U,_object_getenabler' '-Wl,-U,_object_getmethod' '-Wl,-U,_object_getmethod_object' '-Wl,-U,_object_getftime' '-Wl,-U,_object_getvalueof' '-Wl,-U,_object_getvalueof_ext' '-Wl,-U,_object_handlecommand' '-Wl,-U,_object_inspect' '-Wl,-U,_object_mess' '-Wl,-U,_object_method' '-Wl,-U,_object_method_imp' '-Wl,-U,_object_method_attrval' '-Wl,-U,_object_method_binbuf' '-Wl,-U,_object_method_char' '-Wl,-U,_object_method_char_array' '-Wl,-U,_object_method_double' '-Wl,-U,_object_method_double_array' '-Wl,-U,_object_method_float' '-Wl,-U,_object_method_float_array' '-Wl,-U,_object_method_format' '-Wl,-U,_object_method_long' '-Wl,-U,_object_method_long_array' '-Wl,-U,_object_method_obj' '-Wl,-U,_object_method_obj_array' '-Wl,-U,_object_method_objval' '-Wl,-U,_object_method_parse' '-Wl,-U,_object_method_sym' '-Wl,-U,_object_method_sym_array' '-Wl,-U,_object_method_typed' '-Wl,-U,_object_method_typedfun' '-Wl,-U,_object_new' '-Wl,-U,_object_new_imp' '-Wl,-U,_object_new_attrval' '-Wl,-U,_object_new_binbuf' '-Wl,-U,_object_new_format' '-Wl,-U,_object_new_objval' '-Wl,-U,_object_new_parse' '-Wl,-U,_object_new_typed' '-Wl,-U,_object_notify' '-Wl,-U,_object_obex_dumpout' '-Wl,-U,_object_obex_free' '-Wl,-U,_object_obex_get' '-Wl,-U,_object_obex_lookup' '-Wl,-U,_object_obex_lookuplong' '-Wl,-U,_object_obex_lookupsym' '-Wl,-U,_object_obex_quickref' '-Wl,-U,_object_obex_set' '-Wl,-U,_object_obex_store' '-Wl,-U,_object_obex_storelong' '-Wl,-U,_object_obex_storesym' '-Wl,-U,_object_post' '-Wl,-U,_object_poststring' '-Wl,-U,_object_refpage_get_class_info' '-Wl,-U,_object_refpage_get_class_info_fromclassname' '-Wl,-U,_object_refpage_method_is_undocumented' '-Wl,-U,_object_refpage_method_is_groupreference' '-Wl,-U,_object_register' '-Wl,-U,_object_register_unique' '-Wl,-U,_object_replaceargs' '-Wl,-U,_object_reveal' '-Wl,-U,_object_setvalueof' '-Wl,-U,_object_setvalueof_ext' '-Wl,-U,_object_show' '-Wl,-U,_object_sticky' '-Wl,-U,_object_sticky_clear' '-Wl,-U,_object_subpatcher' '-Wl,-U,_object_unregister' '-Wl,-U,_object_warn' '-Wl,-U,_object_zero' '-Wl,-U,_object_isnogood' '-Wl,-U,_onecopy_fileload' '-Wl,-U,_open_dialog' '-Wl,-U,_open_dialog_filetypelist' '-Wl,-U,_opendialog_pathset' '-Wl,-U,_open_messageset' '-Wl,-U,_open_promptset' '-Wl,-U,_OptionKeyDown' '-Wl,-U,_ouchstring' '-Wl,-U,_outlet_add' '-Wl,-U,_outlet_addmonitor' '-Wl,-U,_outlet_anything' '-Wl,-U,_outlet_append' '-Wl,-U,_outlet_insert_after' '-Wl,-U,_outlet_atoms' '-Wl,-U,_outlet_atoms_ext' '-Wl,-U,_outlet_bang' '-Wl,-U,_outlet_canadd' '-Wl,-U,_outlet_count' '-Wl,-U,_outlet_enable' '-Wl,-U,_outlet_float' '-Wl,-U,_outlet_int' '-Wl,-U,_outlet_list' '-Wl,-U,_outlet_msg' '-Wl,-U,_outlet_new' '-Wl,-U,_outlet_notify' '-Wl,-U,_outlet_nth' '-Wl,-U,_outlet_removemonitor' '-Wl,-U,_outlet_rm' '-Wl,-U,_outlet_array' '-Wl,-U,_outlet_string' '-Wl,-U,_packages_getpackagepath' '-Wl,-U,_packages_createsubpathlist' '-Wl,-U,_packages_getsubpathcontents' '-Wl,-U,_palette_getcolor' '-Wl,-U,_patcher_eachdo' '-Wl,-U,_path_addnamed' '-Wl,-U,_path_addpath' '-Wl,-U,_path_build' '-Wl,-U,_path_closefolder' '-Wl,-U,_path_copyfile' '-Wl,-U,_path_copyfolder' '-Wl,-U,_path_copytotempfile' '-Wl,-U,_path_createfolder' '-Wl,-U,_path_createressysfile' '-Wl,-U,_path_createsysfile' '-Wl,-U,_path_deletefile' '-Wl,-U,_path_tempfolder' '-Wl,-U,_path_desktopfolder' '-Wl,-U,_path_userdocfolder' '-Wl,-U,_path_usermaxfolder' '-Wl,-U,_path_extendedfileinfo' '-Wl,-U,_path_fileinfo' '-Wl,-U,_path_fileisresource' '-Wl,-U,_path_foldernextfile' '-Wl,-U,_path_frompathname' '-Wl,-U,_path_fromunicodepathname' '-Wl,-U,_path_toabsolutesystempath' '-Wl,-U,_path_absolutepath' '-Wl,-U,_path_absolutepath_filetypelist' '-Wl,-U,_path_getapppath' '-Wl,-U,_path_getdefault' '-Wl,-U,_path_getfilecreationdate' '-Wl,-U,_path_getfilemoddate' '-Wl,-U,_path_getmoddate' '-Wl,-U,_path_getname' '-Wl,-U,_path_getnext' '-Wl,-U,_path_getpath' '-Wl,-U,_path_getprefstring' '-Wl,-U,_path_getseparator' '-Wl,-U,_path_getstyle' '-Wl,-U,_path_getsupportpath' '-Wl,-U,_path_infoforopensysfile' '-Wl,-U,_path_movefile' '-Wl,-U,_path_nameconform' '-Wl,-U,_path_nameinpath' '-Wl,-U,_path_nameisrelative' '-Wl,-U,_path_openfolder' '-Wl,-U,_path_openresfile' '-Wl,-U,_path_openressysfile' '-Wl,-U,_path_opensysfile' '-Wl,-U,_path_removefromlist' '-Wl,-U,_path_removepath' '-Wl,-U,_path_renamefile' '-Wl,-U,_path_resolvefile' '-Wl,-U,_path_setdefault' '-Wl,-U,_path_setfileinfo' '-Wl,-U,_path_setpermanent' '-Wl,-U,_path_setprefstring' '-Wl,-U,_path_sysnameinpath' '-Wl,-U,_path_collpathnamefrompath' '-Wl,-U,_path_tempfilename' '-Wl,-U,_path_topathname' '-Wl,-U,_path_topotentialname' '-Wl,-U,_path_topotentialunicodename' '-Wl,-U,_path_frompotentialpathname' '-Wl,-U,_path_splitnames' '-Wl,-U,_path_usermaxfolder' '-Wl,-U,_path_addfiles' '-Wl,-U,_path_addfolders' '-Wl,-U,_path_removefiles' '-Wl,-U,_path_exists' '-Wl,-U,_path_inpath' '-Wl,-U,_plug_free' '-Wl,-U,_plug_init' '-Wl,-U,_plug_setloopfun' '-Wl,-U,_popup_free' '-Wl,-U,_popup_new' '-Wl,-U,_popup_show' '-Wl,-U,_post' '-Wl,-U,_post_displayrecent' '-Wl,-U,_post_getpos' '-Wl,-U,_post_sym' '-Wl,-U,_postatom' '-Wl,-U,_postdictionary' '-Wl,-U,_poststring' '-Wl,-U,_preferences_class_define' '-Wl,-U,_preferences_class_defineoption' '-Wl,-U,_preferences_define' '-Wl,-U,_preferences_defineoption' '-Wl,-U,_preferences_getatomforkey' '-Wl,-U,_preferences_getatoms' '-Wl,-U,_preferences_getchar' '-Wl,-U,_preferences_getlong' '-Wl,-U,_preferences_getsym' '-Wl,-U,_preferences_path' '-Wl,-U,_preferences_readdictionary' '-Wl,-U,_preferences_setatoms' '-Wl,-U,_preferences_setchar' '-Wl,-U,_preferences_setlong' '-Wl,-U,_preferences_setsym' '-Wl,-U,_preferences_subpath' '-Wl,-U,_preferences_writedictionary' '-Wl,-U,_preset_int' '-Wl,-U,_preset_set' '-Wl,-U,_preset_store' '-Wl,-U,_proxy_getinlet' '-Wl,-U,_proxy_new' '-Wl,-U,_qelem_free' '-Wl,-U,_qelem_front' '-Wl,-U,_qelem_idlefree' '-Wl,-U,_qelem_idlefront' '-Wl,-U,_qelem_idleset' '-Wl,-U,_qelem_idleunset' '-Wl,-U,_qelem_new' '-Wl,-U,_qelem_set' '-Wl,-U,_qelem_unset' '-Wl,-U,_qelem_setowner' '-Wl,-U,_quotestring' '-Wl,-U,_versioncmp' '-Wl,-U,_versioncanparse' '-Wl,-U,_qti_extra_flags_get' '-Wl,-U,_qti_extra_flags_set' '-Wl,-U,_qti_extra_free' '-Wl,-U,_qti_extra_matrix_get' '-Wl,-U,_qti_extra_matrix_set' '-Wl,-U,_qti_extra_new' '-Wl,-U,_qti_extra_pixelformat_get' '-Wl,-U,_qti_extra_pixelformat_set' '-Wl,-U,_qti_extra_rect_get' '-Wl,-U,_qti_extra_rect_set' '-Wl,-U,_qti_extra_scalemode_get' '-Wl,-U,_qti_extra_scalemode_set' '-Wl,-U,_qti_extra_time_get' '-Wl,-U,_qti_extra_time_set' '-Wl,-U,_qtimage_getrect' '-Wl,-U,_qtimage_open' '-Wl,-U,_quickmap_add' '-Wl,-U,_quickmap_drop' '-Wl,-U,_quickmap_lookup_key1' '-Wl,-U,_quickmap_lookup_key2' '-Wl,-U,_quickmap_readonly' '-Wl,-U,_quickmap_new' '-Wl,-U,_quittask_install' '-Wl,-U,_quittask_remove' '-Wl,-U,_quittask_remove2' '-Wl,-U,_readatom' '-Wl,-U,_readatom_flags' '-Wl,-U,_readtohandle' '-Wl,-U,_recent_add' '-Wl,-U,_recent_getlist' '-Wl,-U,_recent_project_getlist' '-Wl,-U,_reg_object_namespace_lookup' '-Wl,-U,_reg_object_singlesym' '-Wl,-U,_rerand' '-Wl,-U,_saveas_autoextension' '-Wl,-U,_saveas_dialog' '-Wl,-U,_saveas_messageset' '-Wl,-U,_saveas_promptset' '-Wl,-U,_saveas_setselectedtype' '-Wl,-U,_saveasdialog_extended' '-Wl,-U,_saveasdialog_extended_filetypelist' '-Wl,-U,_saveasdialog_pathset' '-Wl,-U,_sched_idledequeue' '-Wl,-U,_sched_isinpoll' '-Wl,-U,_sched_isinqueue' '-Wl,-U,_sched_resume' '-Wl,-U,_sched_set_takeover' '-Wl,-U,_sched_setpollthrottle' '-Wl,-U,_sched_setqueuethrottle' '-Wl,-U,_sched_suspend' '-Wl,-U,_schedule' '-Wl,-U,_schedule_defer' '-Wl,-U,_schedule_delay' '-Wl,-U,_schedule_fdefer' '-Wl,-U,_schedule_fdelay' '-Wl,-U,_schedulef' '-Wl,-U,_scheduler_gettime' '-Wl,-U,_scheduler_getaudiooffset' '-Wl,-U,_scheduler_new' '-Wl,-U,_scheduler_run' '-Wl,-U,_scheduler_get' '-Wl,-U,_scheduler_set' '-Wl,-U,_scheduler_settime' '-Wl,-U,_scheduler_setaudioschedulertime' '-Wl,-U,_scheduler_fromobject' '-Wl,-U,_scheduler_shift' '-Wl,-U,_serialno' '-Wl,-U,_setclock_delay' '-Wl,-U,_setclock_fdelay' '-Wl,-U,_setclock_fgettime' '-Wl,-U,_setclock_getftime' '-Wl,-U,_setclock_gettime' '-Wl,-U,_setclock_unset' '-Wl,-U,_setup' '-Wl,-U,_ShiftKeyDown' '-Wl,-U,_simpleprefs_dictionary' '-Wl,-U,_sndfile_info' '-Wl,-U,_sndfile_writeheader' '-Wl,-U,_sprintf' '-Wl,-U,_sscanf' '-Wl,-U,_sprintf_tr' '-Wl,-U,_stdinletinfo' '-Wl,-U,_stdlist' '-Wl,-U,_str_tr' '-Wl,-U,_string_getptr' '-Wl,-U,_string_new' '-Wl,-U,_string_reserve' '-Wl,-U,_string_append' '-Wl,-U,_string_chop' '-Wl,-U,_string_clone_to_existing' '-Wl,-U,_stringload' '-Wl,-U,_strncpy_zero' '-Wl,-U,_snprintf_zero' '-Wl,-U,_strncat_zero' '-Wl,-U,_symbol_tr' '-Wl,-U,_symbol_unique' '-Wl,-U,_symbolarray_sort' '-Wl,-U,_symobject_new' '-Wl,-U,_symobject_linklist_match' '-Wl,-U,_sysdateformat_strftimetodatetime' '-Wl,-U,_sysdateformat_formatdatetime' '-Wl,-U,_sysfile_close' '-Wl,-U,_sysfile_geteof' '-Wl,-U,_sysfile_geteof_64' '-Wl,-U,_sysfile_getpos' '-Wl,-U,_sysfile_getpos_64' '-Wl,-U,_sysfile_openhandle' '-Wl,-U,_sysfile_openptrsize' '-Wl,-U,_sysfile_read' '-Wl,-U,_sysfile_readtextfile' '-Wl,-U,_sysfile_readtohandle' '-Wl,-U,_sysfile_readtoptr' '-Wl,-U,_sysfile_seteof' '-Wl,-U,_sysfile_setobject' '-Wl,-U,_sysfile_setpos' '-Wl,-U,_sysfile_setpos_64' '-Wl,-U,_sysfile_spoolcopy' '-Wl,-U,_sysfile_write' '-Wl,-U,_sysfile_writetextfile' '-Wl,-U,_sysmem_copyptr' '-Wl,-U,_sysmem_freehandle' '-Wl,-U,_sysmem_freeptr' '-Wl,-U,_sysmem_handlesize' '-Wl,-U,_sysmem_lockhandle' '-Wl,-U,_sysmem_newhandle' '-Wl,-U,_sysmem_newhandleclear' '-Wl,-U,_sysmem_newptr' '-Wl,-U,_sysmem_newptrclear' '-Wl,-U,_sysmem_nullterminatehandle' '-Wl,-U,_sysmem_ptrandhand' '-Wl,-U,_sysmem_ptrbeforehand' '-Wl,-U,_sysmem_ptrsize' '-Wl,-U,_sysmem_resizehandle' '-Wl,-U,_sysmem_resizeptr' '-Wl,-U,_sysmem_resizeptrclear' '-Wl,-U,_sysmenu_appenditem' '-Wl,-U,_sysmenu_appendrawitem' '-Wl,-U,_sysmenu_appendseparator' '-Wl,-U,_sysmenu_assignsubmenu' '-Wl,-U,_sysmenu_checkitem' '-Wl,-U,_sysmenu_cmdid_popup' '-Wl,-U,_sysmenu_cmdid_set' '-Wl,-U,_sysmenu_copyitems' '-Wl,-U,_sysmenu_deleteallitems' '-Wl,-U,_sysmenu_deleteitem' '-Wl,-U,_sysmenu_dispose' '-Wl,-U,_sysmenu_getcheck' '-Wl,-U,_sysmenu_gethelp' '-Wl,-U,_sysmenu_getid' '-Wl,-U,_sysmenu_gettext' '-Wl,-U,_sysmenu_gettitle' '-Wl,-U,_sysmenu_insert' '-Wl,-U,_sysmenu_insertsubmenu' '-Wl,-U,_sysmenu_itemcount' '-Wl,-U,_sysmenu_new' '-Wl,-U,_sysmenu_setitem' '-Wl,-U,_sysmenu_setreference' '-Wl,-U,_sysmenu_setshortcut' '-Wl,-U,_sysmenu_settext' '-Wl,-U,_sysmidi_createport' '-Wl,-U,_sysmidi_deletemarked' '-Wl,-U,_sysmidi_enqbigpacket' '-Wl,-U,_sysmidi_getinstance' '-Wl,-U,_sysmidi_idtoport' '-Wl,-U,_sysmidi_indextoname' '-Wl,-U,_sysmidi_iterate' '-Wl,-U,_sysmidi_numinports' '-Wl,-U,_sysmidi_numoutports' '-Wl,-U,_sysmidi_uniqueid' '-Wl,-U,_sysmidi_data1toport' '-Wl,-U,_sysmidi_nametoport' '-Wl,-U,_sysparallel_processorcount' '-Wl,-U,_sysparallel_physical_processorcount' '-Wl,-U,_sysparallel_task_benchprint' '-Wl,-U,_sysparallel_task_cancel' '-Wl,-U,_sysparallel_task_data' '-Wl,-U,_sysparallel_task_execute' '-Wl,-U,_sysparallel_task_free' '-Wl,-U,_sysparallel_task_new' '-Wl,-U,_sysparallel_task_workerproc' '-Wl,-U,_sysparallel_worker_execute' '-Wl,-U,_sysparallel_worker_free' '-Wl,-U,_sysparallel_worker_new' '-Wl,-U,_systhread_cond_broadcast' '-Wl,-U,_systhread_cond_free' '-Wl,-U,_systhread_cond_new' '-Wl,-U,_systhread_cond_signal' '-Wl,-U,_systhread_cond_wait' '-Wl,-U,_systhread_create' '-Wl,-U,_systhread_exit' '-Wl,-U,_systhread_getspecific' '-Wl,-U,_systhread_ismainthread' '-Wl,-U,_systhread_istimerthread' '-Wl,-U,_systhread_isaudiothread' '-Wl,-U,_systhread_set_name' '-Wl,-U,_systhread_markasaudiothread_begin' '-Wl,-U,_systhread_markasaudiothread_end' '-Wl,-U,_systhread_join' '-Wl,-U,_systhread_timedjoin' '-Wl,-U,_systhread_detach' '-Wl,-U,_systhread_mutex_free' '-Wl,-U,_systhread_mutex_lock' '-Wl,-U,_systhread_mutex_new' '-Wl,-U,_systhread_mutex_newlock' '-Wl,-U,_systhread_mutex_trylock' '-Wl,-U,_systhread_mutex_unlock' '-Wl,-U,_systhread_rwlock_new' '-Wl,-U,_systhread_rwlock_free' '-Wl,-U,_systhread_rwlock_rdlock' '-Wl,-U,_systhread_rwlock_tryrdlock' '-Wl,-U,_systhread_rwlock_rdunlock' '-Wl,-U,_systhread_rwlock_wrlock' '-Wl,-U,_systhread_rwlock_trywrlock' '-Wl,-U,_systhread_rwlock_wrunlock' '-Wl,-U,_systhread_rwlock_setspintime' '-Wl,-U,_systhread_rwlock_getspintime' '-Wl,-U,_systhread_key_create' '-Wl,-U,_systhread_key_delete' '-Wl,-U,_systhread_self' '-Wl,-U,_systhread_equal' '-Wl,-U,_systhread_setpriority' '-Wl,-U,_systhread_getpriority' '-Wl,-U,_systhread_setspecific' '-Wl,-U,_systhread_eliminatedenormals' '-Wl,-U,_systhread_sleep' '-Wl,-U,_systhread_terminate' '-Wl,-U,_systime_datetime' '-Wl,-U,_systime_datetoseconds' '-Wl,-U,_systime_datetime_milliseconds' '-Wl,-U,_systime_ms' '-Wl,-U,_systime_seconds' '-Wl,-U,_systime_secondstodate' '-Wl,-U,_systime_ticks' '-Wl,-U,_systimer_gettime' '-Wl,-U,_tabfromhandle' '-Wl,-U,_table_dirty' '-Wl,-U,_table_get' '-Wl,-U,_textpreferences_add' '-Wl,-U,_textpreferences_addoption' '-Wl,-U,_textpreferences_addraw' '-Wl,-U,_textpreferences_addrect' '-Wl,-U,_textpreferences_close' '-Wl,-U,_textpreferences_default' '-Wl,-U,_textpreferences_open' '-Wl,-U,_textpreferences_read' '-Wl,-U,_time_stop' '-Wl,-U,_time_tick' '-Wl,-U,_time_getms' '-Wl,-U,_time_getticks' '-Wl,-U,_time_listen' '-Wl,-U,_time_getphase' '-Wl,-U,_time_setvalue' '-Wl,-U,_class_time_addattr' '-Wl,-U,_time_new' '-Wl,-U,_time_new_custom' '-Wl,-U,_time_getnamed' '-Wl,-U,_time_enable_attributes' '-Wl,-U,_time_isfixedunit' '-Wl,-U,_time_schedule' '-Wl,-U,_time_schedule_limit' '-Wl,-U,_time_setticks' '-Wl,-U,_time_now' '-Wl,-U,_time_getitm' '-Wl,-U,_time_calcquantize' '-Wl,-U,_time_setclock' '-Wl,-U,_toolfile_fread' '-Wl,-U,_toolfile_fwrite' '-Wl,-U,_toolfile_getc' '-Wl,-U,_toolfile_new' '-Wl,-U,_translation_getinterfacepath' '-Wl,-U,_typedmess' '-Wl,-U,_typelist_make' '-Wl,-U,_utils_setcontext' '-Wl,-U,_utils_usecontext' '-Wl,-U,_utils_getcontextnumber' '-Wl,-U,_utils_contextinuse' '-Wl,-U,_wind_advise' '-Wl,-U,_wind_advise_explain' '-Wl,-U,_wind_nocancel' '-Wl,-U,_wind_setcursor' '-Wl,-U,_xmltree_attr_symcompare' '-Wl,-U,_xmltree_attribute_free' '-Wl,-U,_xmltree_attribute_new' '-Wl,-U,_xmltree_cdata_free' '-Wl,-U,_xmltree_cdata_new' '-Wl,-U,_xmltree_cdata_splittext' '-Wl,-U,_xmltree_charnode_addinterface' '-Wl,-U,_xmltree_charnode_appenddata' '-Wl,-U,_xmltree_charnode_deletedata' '-Wl,-U,_xmltree_charnode_free' '-Wl,-U,_xmltree_charnode_insertdata' '-Wl,-U,_xmltree_charnode_new' '-Wl,-U,_xmltree_charnode_replacedata' '-Wl,-U,_xmltree_charnode_substringdata' '-Wl,-U,_xmltree_comment_free' '-Wl,-U,_xmltree_comment_new' '-Wl,-U,_xmltree_document_createattribute' '-Wl,-U,_xmltree_document_createcdatasection' '-Wl,-U,_xmltree_document_createcomment' '-Wl,-U,_xmltree_document_createelement' '-Wl,-U,_xmltree_document_createheader' '-Wl,-U,_xmltree_document_createtextnode' '-Wl,-U,_xmltree_document_filename' '-Wl,-U,_xmltree_document_free' '-Wl,-U,_xmltree_document_getelementsbytagname' '-Wl,-U,_xmltree_document_new' '-Wl,-U,_xmltree_document_print' '-Wl,-U,_xmltree_document_read' '-Wl,-U,_xmltree_document_write' '-Wl,-U,_xmltree_document_xmlparse_cdata_end' '-Wl,-U,_xmltree_document_xmlparse_cdata_start' '-Wl,-U,_xmltree_document_xmlparse_characterdata' '-Wl,-U,_xmltree_document_xmlparse_comment' '-Wl,-U,_xmltree_document_xmlparse_default' '-Wl,-U,_xmltree_document_xmlparse_doctype_end' '-Wl,-U,_xmltree_document_xmlparse_doctype_start' '-Wl,-U,_xmltree_document_xmlparse_element_end' '-Wl,-U,_xmltree_document_xmlparse_element_start' '-Wl,-U,_xmltree_element_free' '-Wl,-U,_xmltree_element_getattribute' '-Wl,-U,_xmltree_element_getattribute_float' '-Wl,-U,_xmltree_element_getattribute_float_array' '-Wl,-U,_xmltree_element_getattribute_long' '-Wl,-U,_xmltree_element_getattribute_long_array' '-Wl,-U,_xmltree_element_getattribute_sym' '-Wl,-U,_xmltree_element_getattribute_sym_array' '-Wl,-U,_xmltree_element_getattributenode' '-Wl,-U,_xmltree_element_getelementsbytagname' '-Wl,-U,_xmltree_element_new' '-Wl,-U,_xmltree_element_removeattribute' '-Wl,-U,_xmltree_element_removeattributenode' '-Wl,-U,_xmltree_element_setattribute' '-Wl,-U,_xmltree_element_setattribute_float' '-Wl,-U,_xmltree_element_setattribute_float_array' '-Wl,-U,_xmltree_element_setattribute_long' '-Wl,-U,_xmltree_element_setattribute_long_array' '-Wl,-U,_xmltree_element_setattribute_sym' '-Wl,-U,_xmltree_element_setattribute_sym_array' '-Wl,-U,_xmltree_element_setattributenode' '-Wl,-U,_xmltree_element_symcompare' '-Wl,-U,_xmltree_init' '-Wl,-U,_xmltree_node_addinterface' '-Wl,-U,_xmltree_node_appendchild' '-Wl,-U,_xmltree_node_clonenode' '-Wl,-U,_xmltree_node_free' '-Wl,-U,_xmltree_node_getnodevalasstring' '-Wl,-U,_xmltree_node_getnodevalue' '-Wl,-U,_xmltree_node_getnodevalue_float' '-Wl,-U,_xmltree_node_getnodevalue_float_array' '-Wl,-U,_xmltree_node_getnodevalue_long' '-Wl,-U,_xmltree_node_getnodevalue_long_array' '-Wl,-U,_xmltree_node_getnodevalue_sym' '-Wl,-U,_xmltree_node_getnodevalue_sym_array' '-Wl,-U,_xmltree_node_haschildnodes' '-Wl,-U,_xmltree_node_insertbefore' '-Wl,-U,_xmltree_node_new' '-Wl,-U,_xmltree_node_nodevalue' '-Wl,-U,_xmltree_node_nodevalue_float' '-Wl,-U,_xmltree_node_nodevalue_float_array' '-Wl,-U,_xmltree_node_nodevalue_long' '-Wl,-U,_xmltree_node_nodevalue_long_array' '-Wl,-U,_xmltree_node_nodevalue_sym' '-Wl,-U,_xmltree_node_nodevalue_sym_array' '-Wl,-U,_xmltree_node_removeallchildren' '-Wl,-U,_xmltree_node_removechild' '-Wl,-U,_xmltree_node_replacechild' '-Wl,-U,_xmltree_node_setnodevalasstring' '-Wl,-U,_xmltree_node_write' '-Wl,-U,_xmltree_text_free' '-Wl,-U,_xmltree_text_new' '-Wl,-U,_xmltree_text_splittext' '-Wl,-U,_xpcoll_dereference' '-Wl,-U,_xpcoll_load' '-Wl,-U,_xpcoll_open' '-Wl,-U,_xpcoll_opensysfile' '-Wl,-U,_xpcoll_reference' '-Wl,-U,_xpcoll_setclientcallback' '-Wl,-U,_xpcoll_getvol' '-Wl,-U,_xpcoll_openfile' '-Wl,-U,_xpcoll_fromnameddata' '-Wl,-U,_xpcoll_unfreezedevice' '-Wl,-U,_xsetpost' '-Wl,-U,_zgetfn' '-Wl,-U,_jbox_initclass' '-Wl,-U,_jbox_new' '-Wl,-U,_jbox_free' '-Wl,-U,_jbox_ready' '-Wl,-U,_jbox_redraw' '-Wl,-U,_jbox_redrawcontents' '-Wl,-U,_jbox_getoutlet' '-Wl,-U,_jbox_getinlet' '-Wl,-U,_jbox_updatetextfield' '-Wl,-U,_jbox_updatetextfield_safe' '-Wl,-U,_jbox_updatetextfield_lockmutex' '-Wl,-U,_jbox_grabfocus' '-Wl,-U,_jbox_show_caption' '-Wl,-U,_jbox_hide_caption' '-Wl,-U,_jbox_invalidate_layer' '-Wl,-U,_jbox_remove_layer' '-Wl,-U,_jbox_start_layer' '-Wl,-U,_jbox_end_layer' '-Wl,-U,_jbox_paint_layer' '-Wl,-U,_jbox_get_boxpath' '-Wl,-U,_jbox_validaterects' '-Wl,-U,_jbox_processlegacydefaults' '-Wl,-U,_jbox_isdefaultattribute' '-Wl,-U,_jpatcher_deleteobj' '-Wl,-U,_jpatcher_is_patcher' '-Wl,-U,_jpatcher_get_box' '-Wl,-U,_jpatcher_get_count' '-Wl,-U,_jpatcher_get_firstobject' '-Wl,-U,_jpatcher_get_lastobject' '-Wl,-U,_jpatcher_get_firstline' '-Wl,-U,_jpatcher_get_firstview' '-Wl,-U,_jpatcher_set_locked' '-Wl,-U,_jpatcher_get_title' '-Wl,-U,_jpatcher_set_title' '-Wl,-U,_jpatcher_get_name' '-Wl,-U,_jpatcher_get_filename' '-Wl,-U,_jpatcher_get_filepath' '-Wl,-U,_jpatcher_get_dirty' '-Wl,-U,_jpatcher_set_dirty' '-Wl,-U,_jpatcher_get_bgcolor' '-Wl,-U,_jpatcher_set_bgcolor' '-Wl,-U,_jpatcher_get_gridsize' '-Wl,-U,_jpatcher_set_gridsize' '-Wl,-U,_jpatcher_get_parentpatcher' '-Wl,-U,_jpatcher_get_toppatcher' '-Wl,-U,_jpatcher_get_hubholder' '-Wl,-U,_jpatcher_get_maxclass' '-Wl,-U,_jpatcher_get_parentclass' '-Wl,-U,_jpatcher_get_rect' '-Wl,-U,_jpatcher_set_rect' '-Wl,-U,_jpatcher_get_noedit' '-Wl,-U,_jpatcher_uniqueboxname' '-Wl,-U,_jpatcher_getboxfont' '-Wl,-U,_jpatcher_get_controller' '-Wl,-U,_jpatcher_addboxlistener' '-Wl,-U,_jpatcher_removeboxlistener' '-Wl,-U,_jpatcher_get_fileversion' '-Wl,-U,_jpatcher_get_currentfileversion' '-Wl,-U,_jpatcher_get_bglocked' '-Wl,-U,_jpatcher_get_presentation' '-Wl,-U,_jpatcher_inc_maxsendcontext' '-Wl,-U,_jpatcher_dictionary_modernui' '-Wl,-U,_jpatcher_dictionary_version' '-Wl,-U,_jpatcher_sortdictionary' '-Wl,-U,_jpatcher_getboxfromid' '-Wl,-U,_jpatcher_endlognewobjects' '-Wl,-U,_jpatcher_swapboxlist' '-Wl,-U,_jpatcher_swaplinelist' '-Wl,-U,_systemfontname' '-Wl,-U,_systemfontsym' '-Wl,-U,_jpatchercontroller_createobject' '-Wl,-U,_jpatchercontroller_setpatcherview' '-Wl,-U,_jpatchercontroller_pastefileintoobject' '-Wl,-U,_jpatchercontroller_pastefileat' '-Wl,-U,_jpatchercontroller_connectobjects' '-Wl,-U,_jpatchercontroller_begintransaction' '-Wl,-U,_jpatchercontroller_endtransaction' '-Wl,-U,_jpatchercontroller_setattr' '-Wl,-U,_jpatchercontroller_dictionary_setattr' '-Wl,-U,_object_attr_get_rect' '-Wl,-U,_object_attr_set_rect' '-Wl,-U,_object_attr_getcolor' '-Wl,-U,_object_attr_setcolor' '-Wl,-U,_object_attr_getpt' '-Wl,-U,_object_attr_setpt' '-Wl,-U,_object_attr_getsize' '-Wl,-U,_object_attr_setsize' '-Wl,-U,_jbox_get_maxclass' '-Wl,-U,_jbox_get_patcher' '-Wl,-U,_jbox_get_object' '-Wl,-U,_jbox_get_rect_for_view' '-Wl,-U,_jbox_set_rect_for_view' '-Wl,-U,_jbox_get_rect_for_sym' '-Wl,-U,_jbox_set_rect_for_sym' '-Wl,-U,_jbox_set_rect' '-Wl,-U,_jbox_get_patching_rect' '-Wl,-U,_jbox_set_patching_rect' '-Wl,-U,_jbox_get_presentation_rect' '-Wl,-U,_jbox_set_presentation_rect' '-Wl,-U,_jbox_set_position' '-Wl,-U,_jbox_get_patching_position' '-Wl,-U,_jbox_set_patching_position' '-Wl,-U,_jbox_get_presentation_position' '-Wl,-U,_jbox_set_presentation_position' '-Wl,-U,_jbox_set_size' '-Wl,-U,_jbox_get_patching_size' '-Wl,-U,_jbox_set_patching_size' '-Wl,-U,_jbox_get_presentation_size' '-Wl,-U,_jbox_set_presentation_size' '-Wl,-U,_jbox_get_hidden' '-Wl,-U,_jbox_set_hidden' '-Wl,-U,_jbox_get_fontname' '-Wl,-U,_jbox_set_fontname' '-Wl,-U,_jbox_get_fontsize' '-Wl,-U,_jbox_createfont' '-Wl,-U,_jbox_set_fontsize' '-Wl,-U,_jbox_fontface_to_weight_slant' '-Wl,-U,_jbox_get_font_slant' '-Wl,-U,_jbox_get_font_weight' '-Wl,-U,_jbox_get_color' '-Wl,-U,_jbox_set_color' '-Wl,-U,_jbox_get_nextobject' '-Wl,-U,_jbox_get_prevobject' '-Wl,-U,_jbox_get_varname' '-Wl,-U,_jbox_set_varname' '-Wl,-U,_jbox_get_id' '-Wl,-U,_jbox_get_canhilite' '-Wl,-U,_jbox_get_background' '-Wl,-U,_jbox_set_background' '-Wl,-U,_jbox_get_ignoreclick' '-Wl,-U,_jbox_set_ignoreclick' '-Wl,-U,_jbox_get_drawfirstin' '-Wl,-U,_jbox_get_outline' '-Wl,-U,_jbox_set_outline' '-Wl,-U,_jbox_get_growy' '-Wl,-U,_jbox_get_growboth' '-Wl,-U,_jbox_get_nogrow' '-Wl,-U,_jbox_get_drawinlast' '-Wl,-U,_jbox_get_mousedragdelta' '-Wl,-U,_jbox_set_mousedragdelta' '-Wl,-U,_jbox_get_textfield' '-Wl,-U,_jbox_set_hinttrack' '-Wl,-U,_jbox_get_hinttrack' '-Wl,-U,_jbox_set_hintstring' '-Wl,-U,_jpatchline_get_startpoint' '-Wl,-U,_jpatchline_get_endpoint' '-Wl,-U,_jpatchline_get_nummidpoints' '-Wl,-U,_jpatchline_get_pending' '-Wl,-U,_jpatchline_get_box1' '-Wl,-U,_jpatchline_get_outletnum' '-Wl,-U,_jpatchline_get_box2' '-Wl,-U,_jpatchline_get_inletnum' '-Wl,-U,_jpatchline_get_straightthresh' '-Wl,-U,_jpatchline_set_straightthresh' '-Wl,-U,_jpatchline_get_straightstart' '-Wl,-U,_jpatchline_get_straightend' '-Wl,-U,_jpatchline_set_straightstart' '-Wl,-U,_jpatchline_set_straightend' '-Wl,-U,_jpatchline_get_nextline' '-Wl,-U,_jpatchline_get_hidden' '-Wl,-U,_jpatchline_set_hidden' '-Wl,-U,_jpatchline_get_color' '-Wl,-U,_jpatchline_set_color' '-Wl,-U,_jpatchline_addpaintmethod' '-Wl,-U,_patcherview_get_visible' '-Wl,-U,_patcherview_set_visible' '-Wl,-U,_patcherview_get_locked' '-Wl,-U,_patcherview_set_locked' '-Wl,-U,_patcherview_get_zoomfactor' '-Wl,-U,_patcherview_set_zoomfactor' '-Wl,-U,_patcherview_get_nextview' '-Wl,-U,_patcherview_get_topview' '-Wl,-U,_patcherview_get_jgraphics' '-Wl,-U,_patcherview_set_jgraphics' '-Wl,-U,_patcherview_get_patcher' '-Wl,-U,_patcherview_get_rect' '-Wl,-U,_patcherview_set_rect' '-Wl,-U,_patcherview_canvas_to_screen' '-Wl,-U,_patcherview_screen_to_canvas' '-Wl,-U,_patcherview_get_presentation' '-Wl,-U,_textfield_get_owner' '-Wl,-U,_textfield_get_textcolor' '-Wl,-U,_textfield_set_textcolor' '-Wl,-U,_textfield_get_bgcolor' '-Wl,-U,_textfield_set_bgcolor' '-Wl,-U,_textfield_get_textmargins' '-Wl,-U,_textfield_set_textmargins' '-Wl,-U,_textfield_get_editonclick' '-Wl,-U,_textfield_set_editonclick' '-Wl,-U,_textfield_get_selectallonedit' '-Wl,-U,_textfield_set_selectallonedit' '-Wl,-U,_textfield_get_noactivate' '-Wl,-U,_textfield_set_noactivate' '-Wl,-U,_textfield_get_readonly' '-Wl,-U,_textfield_set_readonly' '-Wl,-U,_textfield_get_wordwrap' '-Wl,-U,_textfield_set_wordwrap' '-Wl,-U,_textfield_get_useellipsis' '-Wl,-U,_textfield_set_useellipsis' '-Wl,-U,_textfield_get_autoscroll' '-Wl,-U,_textfield_set_autoscroll' '-Wl,-U,_textfield_get_wantsreturn' '-Wl,-U,_textfield_set_wantsreturn' '-Wl,-U,_textfield_get_wantstab' '-Wl,-U,_textfield_set_wantstab' '-Wl,-U,_textfield_get_autofixwidth' '-Wl,-U,_textfield_set_autofixwidth' '-Wl,-U,_textfield_set_emptytext' '-Wl,-U,_textfield_get_emptytext' '-Wl,-U,_textfield_set_underline' '-Wl,-U,_textfield_get_underline' '-Wl,-U,_textfield_set_justification' '-Wl,-U,_textfield_get_justification' '-Wl,-U,_jdrag_getitemstring' '-Wl,-U,_jdrag_getobject' '-Wl,-U,_jdrag_getlocation' '-Wl,-U,_jdrag_createobject' '-Wl,-U,_jdrag_createnewobj' '-Wl,-U,_jdrag_createmessage' '-Wl,-U,_jdrag_add' '-Wl,-U,_jdrag_process_drop' '-Wl,-U,_jdrag_matchdragrole' '-Wl,-U,_jdrag_setboxlocation' '-Wl,-U,_jdrag_box_add' '-Wl,-U,_jdrag_object_add' '-Wl,-U,_jdrag_itemcount' '-Wl,-U,_jgraphics_getfiletypes' '-Wl,-U,_jgraphics_round' '-Wl,-U,_jgraphics_image_surface_clear' '-Wl,-U,_jgraphics_image_surface_create' '-Wl,-U,_jgraphics_image_surface_create_referenced' '-Wl,-U,_jgraphics_image_surface_create_from_file' '-Wl,-U,_jgraphics_image_surface_create_for_data' '-Wl,-U,_jgraphics_image_surface_create_from_filedata' '-Wl,-U,_jgraphics_image_surface_create_from_resource' '-Wl,-U,_jgraphics_image_surface_writepng' '-Wl,-U,_jgraphics_image_surface_writejpeg' '-Wl,-U,_jgraphics_surface_reference' '-Wl,-U,_jgraphics_surface_destroy' '-Wl,-U,_jgraphics_surface_set_device_offset' '-Wl,-U,_jgraphics_surface_get_device_offset' '-Wl,-U,_jgraphics_image_surface_get_width' '-Wl,-U,_jgraphics_image_surface_get_height' '-Wl,-U,_jgraphics_image_surface_set_pixel' '-Wl,-U,_jgraphics_image_surface_get_pixel' '-Wl,-U,_jgraphics_image_surface_scroll' '-Wl,-U,_jgraphics_image_surface_lockpixels_readonly' '-Wl,-U,_jgraphics_image_surface_unlockpixels_readonly' '-Wl,-U,_jgraphics_image_surface_lockpixels' '-Wl,-U,_jgraphics_image_surface_unlockpixels' '-Wl,-U,_jgraphics_image_surface_draw' '-Wl,-U,_jgraphics_image_surface_draw_fast' '-Wl,-U,_jgraphics_getfontscale' '-Wl,-U,_jgraphics_get_resource_data' '-Wl,-U,_jsvg_create_from_file' '-Wl,-U,_jsvg_create_from_resource' '-Wl,-U,_jsvg_create_from_xmlstring' '-Wl,-U,_jsvg_get_size' '-Wl,-U,_jsvg_destroy' '-Wl,-U,_jsvg_render' '-Wl,-U,_jgraphics_create' '-Wl,-U,_jgraphics_reference' '-Wl,-U,_jgraphics_destroy' '-Wl,-U,_jgraphics_new_path' '-Wl,-U,_jgraphics_copy_path' '-Wl,-U,_jgraphics_path_destroy' '-Wl,-U,_jgraphics_append_path' '-Wl,-U,_jgraphics_close_path' '-Wl,-U,_jgraphics_path_roundcorners' '-Wl,-U,_jgraphics_get_current_point' '-Wl,-U,_jgraphics_diagonal_line_fill' '-Wl,-U,_jgraphics_arc' '-Wl,-U,_jgraphics_arc_negative' '-Wl,-U,_jgraphics_piesegment' '-Wl,-U,_jgraphics_curve_to' '-Wl,-U,_jgraphics_rel_curve_to' '-Wl,-U,_jgraphics_line_to' '-Wl,-U,_jgraphics_rel_line_to' '-Wl,-U,_jgraphics_move_to' '-Wl,-U,_jgraphics_rel_move_to' '-Wl,-U,_jgraphics_rectangle' '-Wl,-U,_jgraphics_rectangle_rounded' '-Wl,-U,_jgraphics_ellipse' '-Wl,-U,_jgraphics_oval' '-Wl,-U,_jgraphics_ovalarc' '-Wl,-U,_jgraphics_in_fill' '-Wl,-U,_jgraphics_line_intersects_rect' '-Wl,-U,_jgraphics_path_intersects_line' '-Wl,-U,_jgraphics_path_intersectsline' '-Wl,-U,_jgraphics_path_getpathelems' '-Wl,-U,_jgraphics_rectintersectsrect' '-Wl,-U,_jgraphics_rectcontainsrect' '-Wl,-U,_jgraphics_ptinrect' '-Wl,-U,_jgraphics_ptinroundedrect' '-Wl,-U,_jgraphics_fill_extents' '-Wl,-U,_jgraphics_select_font_face' '-Wl,-U,_jgraphics_select_jfont' '-Wl,-U,_jgraphics_set_font_size' '-Wl,-U,_jgraphics_set_underline' '-Wl,-U,_jgraphics_show_text' '-Wl,-U,_jgraphics_font_extents' '-Wl,-U,_jgraphics_text_measure' '-Wl,-U,_jgraphics_text_measuretext_wrapped' '-Wl,-U,_jgraphics_text_path' '-Wl,-U,_jgraphics_jrgba_contrasting' '-Wl,-U,_jgraphics_jrgba_contrastwith' '-Wl,-U,_jgraphics_jrgba_darker' '-Wl,-U,_jgraphics_jrgba_brighter' '-Wl,-U,_jgraphics_jrgba_overlay' '-Wl,-U,_jgraphics_jrgba_interpolate' '-Wl,-U,_jgraphics_jrgba_gethsb' '-Wl,-U,_jgraphics_jrgba_fromhsb' '-Wl,-U,_jgraphics_clip' '-Wl,-U,_jfont_create_from_maxfont' '-Wl,-U,_jfont_create' '-Wl,-U,_jfont_reference' '-Wl,-U,_jfont_destroy' '-Wl,-U,_jfont_ellipsifytext' '-Wl,-U,_jfont_isequalto' '-Wl,-U,_jfont_set_family' '-Wl,-U,_jfont_get_family' '-Wl,-U,_jfont_set_slant' '-Wl,-U,_jfont_get_slant' '-Wl,-U,_jfont_set_weight' '-Wl,-U,_jfont_get_weight' '-Wl,-U,_jfont_set_font_size' '-Wl,-U,_jfont_get_font_size' '-Wl,-U,_jfont_set_underline' '-Wl,-U,_jfont_get_underline' '-Wl,-U,_jfont_get_heighttocharheightratio' '-Wl,-U,_jfont_extents' '-Wl,-U,_jfont_text_measure' '-Wl,-U,_jfont_text_measuretext_wrapped' '-Wl,-U,_jfont_getfontlist' '-Wl,-U,_jfont_get_em_dimensions' '-Wl,-U,_jgraphics_system_canantialiastexttotransparentbg' '-Wl,-U,_jtextlayout_create' '-Wl,-U,_jtextlayout_withbgcolor' '-Wl,-U,_jtextlayout_destroy' '-Wl,-U,_jtextlayout_set' '-Wl,-U,_jtextlayout_settext' '-Wl,-U,_jtextlayout_settextcolor' '-Wl,-U,_jtextlayout_measuretext' '-Wl,-U,_jtextlayout_draw' '-Wl,-U,_jtextlayout_getnumchars' '-Wl,-U,_jtextlayout_getcharbox' '-Wl,-U,_jtextlayout_getchar' '-Wl,-U,_jtextlayout_createpath' '-Wl,-U,_jgraphics_matrix_init' '-Wl,-U,_jgraphics_matrix_init_identity' '-Wl,-U,_jgraphics_matrix_init_translate' '-Wl,-U,_jgraphics_matrix_init_scale' '-Wl,-U,_jgraphics_matrix_init_rotate' '-Wl,-U,_jgraphics_matrix_translate' '-Wl,-U,_jgraphics_matrix_scale' '-Wl,-U,_jgraphics_matrix_rotate' '-Wl,-U,_jgraphics_matrix_invert' '-Wl,-U,_jgraphics_matrix_multiply' '-Wl,-U,_jgraphics_matrix_transform_point' '-Wl,-U,_jgraphics_pattern_create_rgba' '-Wl,-U,_jgraphics_pattern_create_for_surface' '-Wl,-U,_jgraphics_pattern_create_linear' '-Wl,-U,_jgraphics_pattern_create_radial' '-Wl,-U,_jgraphics_pattern_add_color_stop_rgba' '-Wl,-U,_jgraphics_pattern_reference' '-Wl,-U,_jgraphics_pattern_destroy' '-Wl,-U,_jgraphics_pattern_get_type' '-Wl,-U,_jgraphics_pattern_set_extend' '-Wl,-U,_jgraphics_pattern_get_extend' '-Wl,-U,_jgraphics_pattern_set_matrix' '-Wl,-U,_jgraphics_pattern_get_matrix' '-Wl,-U,_jgraphics_pattern_get_surface' '-Wl,-U,_jgraphics_pattern_translate' '-Wl,-U,_jgraphics_pattern_scale' '-Wl,-U,_jgraphics_pattern_rotate' '-Wl,-U,_jgraphics_translate' '-Wl,-U,_jgraphics_scale' '-Wl,-U,_jgraphics_rotate' '-Wl,-U,_jgraphics_transform' '-Wl,-U,_jgraphics_set_matrix' '-Wl,-U,_jgraphics_get_matrix' '-Wl,-U,_jgraphics_identity_matrix' '-Wl,-U,_jgraphics_user_to_device' '-Wl,-U,_jgraphics_device_to_user' '-Wl,-U,_jgraphics_save' '-Wl,-U,_jgraphics_restore' '-Wl,-U,_jgraphics_set_source_rgba' '-Wl,-U,_jgraphics_set_source_jrgba' '-Wl,-U,_jgraphics_set_source_rgb' '-Wl,-U,_jgraphics_set_source' '-Wl,-U,_jgraphics_set_source_surface' '-Wl,-U,_jgraphics_set_source_shared' '-Wl,-U,_jgraphics_scale_source_rgba' '-Wl,-U,_jgraphics_translate_source_rgba' '-Wl,-U,_jgraphics_set_dash' '-Wl,-U,_jgraphics_set_fill_rule' '-Wl,-U,_jgraphics_get_fill_rule' '-Wl,-U,_jgraphics_set_line_cap' '-Wl,-U,_jgraphics_get_line_cap' '-Wl,-U,_jgraphics_set_line_join' '-Wl,-U,_jgraphics_get_line_join' '-Wl,-U,_jgraphics_set_line_width' '-Wl,-U,_jgraphics_get_line_width' '-Wl,-U,_jgraphics_paint' '-Wl,-U,_jgraphics_paint_with_alpha' '-Wl,-U,_jgraphics_fill' '-Wl,-U,_jgraphics_fill_preserve' '-Wl,-U,_jgraphics_fill_preserve_with_alpha' '-Wl,-U,_jgraphics_fill_with_alpha' '-Wl,-U,_jgraphics_stroke' '-Wl,-U,_jgraphics_stroke_preserve' '-Wl,-U,_jgraphics_stroke_preserve_with_alpha' '-Wl,-U,_jgraphics_stroke_with_alpha' '-Wl,-U,_get_boxcolor_index_from_jrgba' '-Wl,-U,_set_jrgba_from_palette_index' '-Wl,-U,_set_jrgba_from_boxcolor_index' '-Wl,-U,_jgraphics_clip_rgba' '-Wl,-U,_jpopupmenu_create' '-Wl,-U,_jpopupmenu_destroy' '-Wl,-U,_jpopupmenu_clear' '-Wl,-U,_jpopupmenu_default_options' '-Wl,-U,_jpopupmenu_setcolors' '-Wl,-U,_jpopupmenu_setfont' '-Wl,-U,_jpopupmenu_additem' '-Wl,-U,_jpopupmenu_additemwithshortcut' '-Wl,-U,_jpopupmenu_addsubmenu' '-Wl,-U,_jpopupmenu_addsubmenu_owned' '-Wl,-U,_jpopupmenu_addseparator' '-Wl,-U,_jpopupmenu_addseperator' '-Wl,-U,_jpopupmenu_addownerdrawitem' '-Wl,-U,_jpopupmenu_popup' '-Wl,-U,_jpopupmenu_popup_nearbox' '-Wl,-U,_jpopupmenu_popup_nearbox_with_options' '-Wl,-U,_jpopupmenu_popup_abovebox' '-Wl,-U,_jpopupmenu_popup_belowrect' '-Wl,-U,_jpopupmenu_popup_leftofpt' '-Wl,-U,_jpopupmenu_closeall' '-Wl,-U,_jpopupmenu_setstandardstyle' '-Wl,-U,_jpopupmenu_setfixedwidth' '-Wl,-U,_jmouse_getposition_global' '-Wl,-U,_jmouse_setposition_global' '-Wl,-U,_jmouse_setposition_view' '-Wl,-U,_jmouse_setposition_box' '-Wl,-U,_jmouse_setcursor' '-Wl,-U,_jmouse_setcursor_surface' '-Wl,-U,_dictionary_appendjrgba' '-Wl,-U,_dictionary_getdefjrgba' '-Wl,-U,_dictionary_gettrect' '-Wl,-U,_dictionary_appendtrect' '-Wl,-U,_dictionary_gettpt' '-Wl,-U,_dictionary_appendtpt' '-Wl,-U,_atomstojrgba' '-Wl,-U,_jrgbatoatoms' '-Wl,-U,_qd_new' '-Wl,-U,_qd_initialize' '-Wl,-U,_qd_copystate' '-Wl,-U,_qd_PenNormal' '-Wl,-U,_qd_RGBForeColor' '-Wl,-U,_qd_RGBBackColor' '-Wl,-U,_qd_BoxcolorIndexForeColor' '-Wl,-U,_qd_InsetTRect' '-Wl,-U,_qd_OffsetTRect' '-Wl,-U,_qd_EqualTRect' '-Wl,-U,_qd_JRGBAToRGBColor' '-Wl,-U,_qd_GetForeColor' '-Wl,-U,_qd_GetBackColor' '-Wl,-U,_qd_GetForeJColor' '-Wl,-U,_qd_GetBackJColor' '-Wl,-U,_qd_Black' '-Wl,-U,_qd_White' '-Wl,-U,_qd_MoveTo' '-Wl,-U,_qd_LineTo' '-Wl,-U,_qd_Line' '-Wl,-U,_qd_EraseRect' '-Wl,-U,_qd_TRectToRect' '-Wl,-U,_qd_RectToTRect' '-Wl,-U,_qd_RGBColorToJRGBA' '-Wl,-U,_qd_TRectToRectZero' '-Wl,-U,_qd_InsetRect' '-Wl,-U,_qd_OffsetRect' '-Wl,-U,_qd_PaintTRect' '-Wl,-U,_qd_PaintRect' '-Wl,-U,_qd_FrameRect' '-Wl,-U,_qd_PenSize' '-Wl,-U,_qd_Move' '-Wl,-U,_qd_SetBackJColor' '-Wl,-U,_qd_SetRect' '-Wl,-U,_qd_PaintOval' '-Wl,-U,_qd_FrameOval' '-Wl,-U,_qd_PaintRoundRect' '-Wl,-U,_qd_FrameRoundRect' '-Wl,-U,_qd_GetPenLoc' '-Wl,-U,_qd_GetCPixel' '-Wl,-U,_qd_SetCPixel' '-Wl,-U,_qd_PaintArc' '-Wl,-U,_qd_FrameArc' '-Wl,-U,_qd_SetForeJColor' '-Wl,-U,_qd_KillPoly' '-Wl,-U,_qd_PaintPoly' '-Wl,-U,_qd_ClosePoly' '-Wl,-U,_qd_OpenPoly' '-Wl,-U,_qd_LineSegment' '-Wl,-U,_qd_TPtInTRect' '-Wl,-U,_qd_FramePoly' '-Wl,-U,_qd_CloseRgn' '-Wl,-U,_qd_DisposeRgn' '-Wl,-U,_qd_FrameRgn' '-Wl,-U,_qd_OpenRgn' '-Wl,-U,_qd_PaintRgn' '-Wl,-U,_jmenu_init' '-Wl,-U,_jmenu_command_setstate' '-Wl,-U,_jmenu_process' '-Wl,-U,_jmenu_command_enable' '-Wl,-U,_jmenu_command_getstate' '-Wl,-U,_jmenu_command_invert' '-Wl,-U,_jmenu_command_invalidate' '-Wl,-U,_jmenu_command_settext' '-Wl,-U,_jmenu_new' '-Wl,-U,_jmenu_addsubmenu' '-Wl,-U,_jmenu_addseparator' '-Wl,-U,_jmenu_appenditem' '-Wl,-U,_jmenu_interface_fromfile' '-Wl,-U,_jmenu_clearenums' '-Wl,-U,_jmenu_command_setid' '-Wl,-U,_jmenu_enumerate_getfile' '-Wl,-U,_jmenu_enumerate_path' '-Wl,-U,_jmenu_enumerate_data' '-Wl,-U,_jmenu_lookup' '-Wl,-U,_jcolor_getcolor' '-Wl,-U,_jcolor_linkcolor' '-Wl,-U,_jcommand_lookup' '-Wl,-U,_jmenu_update' '-Wl,-U,_jmenu_command_enableall_fortarget' '-Wl,-U,_jmenu_proxy_popup' '-Wl,-U,_jmonitor_getnumdisplays' '-Wl,-U,_jmonitor_getdisplayrect_foralldisplays' '-Wl,-U,_jmonitor_getdisplayrect' '-Wl,-U,_jmonitor_getdisplayrect_forpoint' '-Wl,-U,_jmonitor_getdisplayscalefactor' '-Wl,-U,_jmonitor_getdisplayscalefactor_forpoint' '-Wl,-U,_jmonitor_scale_pt' '-Wl,-U,_jmonitor_unscale_pt' '-Wl,-U,_jkeyboard_getcurrentmodifiers' '-Wl,-U,_jbox_notify' '-Wl,-U,_jgraphics_attr_setrgba' '-Wl,-U,_jgraphics_attr_getrgba' '-Wl,-U,_jgraphics_attr_setrgb_alias' '-Wl,-U,_jcolumn_setcheckbox' '-Wl,-U,_jcolumn_setvaluemsg' '-Wl,-U,_jcolumn_setrowcomponentmsg' '-Wl,-U,_jcolumn_setmaxwidth' '-Wl,-U,_jcolumn_setminwidth' '-Wl,-U,_jcolumn_setwidth' '-Wl,-U,_jcolumn_setlabel' '-Wl,-U,_jcolumn_sethideable' '-Wl,-U,_jcolumn_setvisible' '-Wl,-U,_jcolumn_getvisible' '-Wl,-U,_jcolumn_setinitiallysorted' '-Wl,-U,_jcolumn_setnumeric' '-Wl,-U,_jcolumn_setoverridesort' '-Wl,-U,_jcolumn_setcustomsort' '-Wl,-U,_jcolumn_getid' '-Wl,-U,_jcolumn_update' '-Wl,-U,_jcolumn_getname' '-Wl,-U,_jcolumn_getreference' '-Wl,-U,_jcolumn_setdraggable' '-Wl,-U,_jcolumn_setindentspacing' '-Wl,-U,_jcolumn_setreference' '-Wl,-U,_jcolumn_setsortable' '-Wl,-U,_jcolumn_setcustompaint' '-Wl,-U,_jcolumn_setcellcluemsg' '-Wl,-U,_jcolumn_setcelltextcolormsg' '-Wl,-U,_jcolumn_setcelltextstylemsg' '-Wl,-U,_jdataview_addcolumn' '-Wl,-U,_jdataview_addcolumn_hidden' '-Wl,-U,_jdataview_addrows' '-Wl,-U,_jdataview_addrow' '-Wl,-U,_jdataview_clear' '-Wl,-U,_jdataview_containersizechange' '-Wl,-U,_jdataview_deletecolumn' '-Wl,-U,_jdataview_deleterows' '-Wl,-U,_jdataview_deleterow' '-Wl,-U,_jdataview_editcell' '-Wl,-U,_jdataview_forcecellvisible' '-Wl,-U,_jdataview_getfontname' '-Wl,-U,_jdataview_getfontsize' '-Wl,-U,_jdataview_gethorizscrollvalues' '-Wl,-U,_jdataview_getnamedcolumn' '-Wl,-U,_jdataview_getnthcolumn' '-Wl,-U,_jdataview_getnumcolumns' '-Wl,-U,_jdataview_getnumrows' '-Wl,-U,_jdataview_getvertscrollvalues' '-Wl,-U,_jdataview_resort' '-Wl,-U,_jdataview_restorecolumnwidths' '-Wl,-U,_jdataview_savecolumnwidths' '-Wl,-U,_jdataview_setautosizeright' '-Wl,-U,_jdataview_setautosizebottom' '-Wl,-U,_jdataview_setautosizerightcolumn' '-Wl,-U,_jdataview_setbordercolor' '-Wl,-U,_jdataview_setborderthickness' '-Wl,-U,_jdataview_setcolumnheadercluemsg' '-Wl,-U,_jdataview_setcolumnheaderheight' '-Wl,-U,_jdataview_setcustomselectcolor' '-Wl,-U,_jdataview_setdragenabled' '-Wl,-U,_jdataview_setdrawgrid' '-Wl,-U,_jdataview_setfontname' '-Wl,-U,_jdataview_setfontsize' '-Wl,-U,_jdataview_setheight' '-Wl,-U,_jdataview_sethorizscrollvalues' '-Wl,-U,_jdataview_setkeyfocusable' '-Wl,-U,_jdataview_setscrollvisible' '-Wl,-U,_jdataview_setselectcolor' '-Wl,-U,_jdataview_setrowcolor2' '-Wl,-U,_jdataview_setrowcolor1' '-Wl,-U,_jdataview_setusegradient' '-Wl,-U,_jdataview_setusesystemfont' '-Wl,-U,_jdataview_setvertscrollvalues' '-Wl,-U,_jdataview_setclient' '-Wl,-U,_jdataview_new' '-Wl,-U,_jdataview_newsection' '-Wl,-U,_jdataview_numsections' '-Wl,-U,_jdataview_getnthsection' '-Wl,-U,_jdataview_section_getnumrows' '-Wl,-U,_jdataview_section_getallrows' '-Wl,-U,_jdataview_section_isopen' '-Wl,-U,_jdataview_section_setopen' '-Wl,-U,_jdataview_getsectionopenness' '-Wl,-U,_jdataview_setsectionopenness' '-Wl,-U,_jdataview_section_headervisible' '-Wl,-U,_jdataview_section_setheadervisible' '-Wl,-U,_jdataview_section_getname' '-Wl,-U,_jdataview_section_geticon' '-Wl,-U,_jdataview_scrolltosection' '-Wl,-U,_jdataview_scrolltotop' '-Wl,-U,_jdataview_addrowtosection' '-Wl,-U,_jdataview_addrowstosection' '-Wl,-U,_jdataview_deleterowfromsection' '-Wl,-U,_jdataview_deleterowsfromsection' '-Wl,-U,_jdataview_deleteselectedrows' '-Wl,-U,_jdataview_deleteselectedrowsforview' '-Wl,-U,_jdataview_gettextinrows' '-Wl,-U,_jdataview_iscelltextselected' '-Wl,-U,_jdataview_selectedrowcountforview' '-Wl,-U,_jdataview_selectedrowcount' '-Wl,-U,_jdataview_getselectedrowsforview' '-Wl,-U,_jdataview_applytoselectedrows' '-Wl,-U,_jdataview_applytorows' '-Wl,-U,_jdataview_cellcut' '-Wl,-U,_jdataview_cellcopy' '-Wl,-U,_jdataview_cellpaste' '-Wl,-U,_jdataview_setcancopy' '-Wl,-U,_jdataview_getcancopy' '-Wl,-U,_jdataview_setcanpaste' '-Wl,-U,_jdataview_getcanpaste' '-Wl,-U,_jdataview_getsortcolumn' '-Wl,-U,_jdataview_sortcolumn' '-Wl,-U,_jdataview_redrawcolumn' '-Wl,-U,_jdataview_repaintforview' '-Wl,-U,_jdataview_obscuring' '-Wl,-U,_jdataview_id2colname' '-Wl,-U,_jdataview_colname2id' '-Wl,-U,_jdataview_enablecell' '-Wl,-U,_jdataview_enablerow' '-Wl,-U,_jdataview_colname_setvisible' '-Wl,-U,_jdataview_colname_getvisible' '-Wl,-U,_jdataview_colname_delete' '-Wl,-U,_jdataview_patchervis' '-Wl,-U,_jdataview_patcherinvis' '-Wl,-U,_jdataview_showrow' '-Wl,-U,_jdataview_redrawcell' '-Wl,-U,_jdataview_redrawrow' '-Wl,-U,_jdataview_row2id' '-Wl,-U,_jdataview_selectcell' '-Wl,-U,_jdataview_selectcellinview' '-Wl,-U,_jdataview_sort' '-Wl,-U,_jdataview_setusecharheightfont' '-Wl,-U,_jdialog_showtext' '-Wl,-U,_jdialog_show2button_async' '-Wl,-U,_jdialog_cancel_async' '-Wl,-U,_newobject_sprintf' '-Wl,-U,_itm_initclass' '-Wl,-U,_itm_new' '-Wl,-U,_itm_getglobal' '-Wl,-U,_itm_getnamed' '-Wl,-U,_itm_clocksource_getnamed' '-Wl,-U,_itm_getclocksources' '-Wl,-U,_itmclock_new' '-Wl,-U,_itm_poke' '-Wl,-U,_itm_gettime' '-Wl,-U,_itm_getticks' '-Wl,-U,_itmclock_delay' '-Wl,-U,_itmclock_set' '-Wl,-U,_itmclock_unset' '-Wl,-U,_itm_sync' '-Wl,-U,_itm_settimesignature' '-Wl,-U,_itm_seek' '-Wl,-U,_itm_pause' '-Wl,-U,_itm_resume' '-Wl,-U,_itm_setresolution' '-Wl,-U,_itm_reference' '-Wl,-U,_itm_dereference' '-Wl,-U,_itm_tickstobarbeatunits_timesig' '-Wl,-U,_itm_barbeatunitstoticks_timesig' '-Wl,-U,_itm_barbeatunitstoticks' '-Wl,-U,_itm_tickstobarbeatunits' '-Wl,-U,_itm_nextbeat' '-Wl,-U,_itm_nextunit' '-Wl,-U,_itm_parse' '-Wl,-U,_itm_deleteeventlist' '-Wl,-U,_itm_geteventlistnames' '-Wl,-U,_itm_switcheventlist' '-Wl,-U,_itm_gettimesignature' '-Wl,-U,_itm_getstate' '-Wl,-U,_itm_getresolution' '-Wl,-U,_itm_dump' '-Wl,-U,_itm_getfromarg' '-Wl,-U,_itm_getglobal' '-Wl,-U,_itm_getnamed' '-Wl,-U,_itm_getfromarg' '-Wl,-U,_itm_reference' '-Wl,-U,_itm_dereference' '-Wl,-U,_itm_deleteeventlist' '-Wl,-U,_itm_eventlistseek' '-Wl,-U,_itm_geteventlistnames' '-Wl,-U,_itm_switcheventlist' '-Wl,-U,_itm_gettime' '-Wl,-U,_itm_getticks' '-Wl,-U,_itm_dump' '-Wl,-U,_itm_sync' '-Wl,-U,_itm_settimesignature' '-Wl,-U,_itm_gettimesignature' '-Wl,-U,_itm_seek' '-Wl,-U,_itm_pause' '-Wl,-U,_itm_resume' '-Wl,-U,_itm_getstate' '-Wl,-U,_itm_setresolution' '-Wl,-U,_itm_getresolution' '-Wl,-U,_itm_getname' '-Wl,-U,_itm_parse' '-Wl,-U,_itm_tickstoms' '-Wl,-U,_itm_mstoticks' '-Wl,-U,_itm_mstosamps' '-Wl,-U,_itm_sampstoms' '-Wl,-U,_itm_barbeatunitstoticks' '-Wl,-U,_itm_tickstobarbeatunits' '-Wl,-U,_itm_format' '-Wl,-U,_itm_isunitfixed' '-Wl,-U,_itm_gettempo' '-Wl,-U,_itm_getsr' '-Wl,-U,_itmclock_new' '-Wl,-U,_itmclock_delay' '-Wl,-U,_itmclock_set' '-Wl,-U,_itmclock_unset' '-Wl,-U,_patcher_removedefault' '-Wl,-U,_patcher_setdefault' '-Wl,-U,_patcher_getdefault' '-Wl,-U,_patcher_removedefault' '-Wl,-U,_patcher_setdefault' '-Wl,-U,_patcher_boxname' '-Wl,-U,_atom_alloc_array' '-Wl,-U,_atomarray_decodebinarydata' '-Wl,-U,_jgraphics_write_image_surface_to_filedata' '-Wl,-U,_binarydata_appendtodictionary' '-Wl,-U,_patcherview_findpatcherview' '-Wl,-U,_jpatcher_resolvepatcher' '-Wl,-U,_jpatcher_resolvebox' '-Wl,-U,_jpatcher_resolvebox_ex' '-Wl,-U,_jpatcher_resolveobj' '-Wl,-U,_jpatcher_resolvebox_boxpath' '-Wl,-U,_jpatcher_resolveobj_boxpath' '-Wl,-U,_jwind_canfullscreen' '-Wl,-U,_jwind_getactive' '-Wl,-U,_jwind_getcount' '-Wl,-U,_jwind_getat' '-Wl,-U,_jwind_nextuntitled' '-Wl,-U,_jgraphics_rectangle_fill_fast' '-Wl,-U,_jgraphics_rectangle_draw_fast' '-Wl,-U,_jgraphics_line_draw_fast' '-Wl,-U,_atomarray_new' '-Wl,-U,_atomarray_flags' '-Wl,-U,_atomarray_getflags' '-Wl,-U,_atomarray_setatoms' '-Wl,-U,_atomarray_getatoms' '-Wl,-U,_atomarray_copyatoms' '-Wl,-U,_atomarray_getsize' '-Wl,-U,_atomarray_getindex' '-Wl,-U,_atomarray_duplicate' '-Wl,-U,_atomarray_clone' '-Wl,-U,_atomarray_clone_to_existing' '-Wl,-U,_atomarray_setatoms_clone' '-Wl,-U,_atomarray_appendatom' '-Wl,-U,_atomarray_appendatoms' '-Wl,-U,_atomarray_chuckindex' '-Wl,-U,_atomarray_clear' '-Wl,-U,_atomarray_funall' '-Wl,-U,_atomarray_dispose' '-Wl,-U,_atomarray_insertatom_atindex' '-Wl,-U,_atomarray_prependatom' '-Wl,-U,_atomarray_prependatoms' '-Wl,-U,_common_symbols_gettable' '-Wl,-U,_object_obex_storeflags' '-Wl,-U,_object_obex_enforce' '-Wl,-U,_object_attr_getjrgba' '-Wl,-U,_object_attr_setjrgba' '-Wl,-U,_jrgba_to_atoms' '-Wl,-U,_atoms_to_jrgba' '-Wl,-U,_jrgba_set' '-Wl,-U,_jrgba_copy' '-Wl,-U,_jrgba_compare' '-Wl,-U,_jrgba_attr_set' '-Wl,-U,_class_parameter_init' '-Wl,-U,_class_parameter_mappable' '-Wl,-U,_class_parameter_setinfo' '-Wl,-U,_class_parameter_getinfo' '-Wl,-U,_class_parameter_register_default_color' '-Wl,-U,_object_parameter_init' '-Wl,-U,_object_parameter_init_flags' '-Wl,-U,_object_parameter_dictionary_process' '-Wl,-U,_object_parameter_hasminmax_true' '-Wl,-U,_object_parameter_hasminmax_false' '-Wl,-U,_class_parameter_addmethod' '-Wl,-U,_parameter_default_int' '-Wl,-U,_parameter_default_float' '-Wl,-U,_parameter_default_anything' '-Wl,-U,_object_parameter_free' '-Wl,-U,_object_parameter_notify' '-Wl,-U,_object_parameter_getinfo' '-Wl,-U,_object_parameter_setinfo' '-Wl,-U,_object_parameter_string_get' '-Wl,-U,_object_parameter_stringtovalue' '-Wl,-U,_object_parameter_value_set' '-Wl,-U,_object_parameter_value_get' '-Wl,-U,_object_parameter_color_get' '-Wl,-U,_object_parameter_value_getvalueof' '-Wl,-U,_object_parameter_value_setvalueof' '-Wl,-U,_object_parameter_value_setvalueof_nonotify' '-Wl,-U,_object_parameter_value_changed' '-Wl,-U,_object_parameter_value_changed_nonotify' '-Wl,-U,_object_parameter_current_to_initial' '-Wl,-U,_object_parameter_is_initialized' '-Wl,-U,_object_parameter_is_in_Live' '-Wl,-U,_object_parameter_is_automated' '-Wl,-U,_object_parameter_wants_focus' '-Wl,-U,_object_parameter_is_parameter' '-Wl,-U,_object_parameter_get_order' '-Wl,-U,_object_parameter_is_in_maxtilde' '-Wl,-U,_object_parameter_getenable_savestate' '-Wl,-U,_live_default_color_count' '-Wl,-U,_live_default_color_string' '-Wl,-U,_live_default_dynamic_color_string' '-Wl,-U,_live_default_color_symbol' '-Wl,-U,_live_default_color_rgbastring' '-Wl,-U,_live_default_color_rgba' '-Wl,-U,_live_default_color_rgba_from_symbol' '-Wl,-U,_param_global_initializecolors' '-Wl,-U,_project_newfromdevicepatcher' '-Wl,-U,_remote_object_new_typed' '-Wl,-U,_remote_object_new_typed_flags' '-Wl,-U,_remote_object_get' '-Wl,-U,_remote_object_get_flags' '-Wl,-U,_remote_object_method_typed' '-Wl,-U,_remote_object_method_typed_flags' '-Wl,-U,_remote_object_attr_setvalueof' '-Wl,-U,_remote_object_attr_setvalueof_flags' '-Wl,-U,_remote_object_attr_getvalueof' '-Wl,-U,_remote_object_attr_getvalueof_flags' '-Wl,-U,_maxserver_getremoteurl' '-Wl,-U,_maxserver_getcontent' '-Wl,-U,_sysshmem_alloc' '-Wl,-U,_sysshmem_open' '-Wl,-U,_sysshmem_close' '-Wl,-U,_sysshmem_getsize' '-Wl,-U,_sysshmem_getptr' '-Wl,-U,_syssem_create' '-Wl,-U,_syssem_open' '-Wl,-U,_syssem_close' '-Wl,-U,_syssem_wait' '-Wl,-U,_syssem_trywait' '-Wl,-U,_syssem_post' '-Wl,-U,_sysprocess_isrunning' '-Wl,-U,_sysprocess_isrunning_with_returnvalue' '-Wl,-U,_sysprocess_kill' '-Wl,-U,_sysprocess_launch' '-Wl,-U,_sysprocess_launch_withflags' '-Wl,-U,_sysprocess_activate' '-Wl,-U,_sysprocess_getid' '-Wl,-U,_sysprocess_getcurrentid' '-Wl,-U,_sysprocess_getpath' '-Wl,-U,_sysprocesswatcher_new' '-Wl,-U,_sysprocess_fitsarch' '-Wl,-U,_object_retain' '-Wl,-U,_object_release' '-Wl,-U,_multigraph_add' '-Wl,-U,_multigraph_remove' '-Wl,-U,_multinode_resizeio' '-Wl,-U,_multinode_hasdescendant' '-Wl,-U,_multigraph_connect' '-Wl,-U,_multigraph_connect_relaxed' '-Wl,-U,_multigraph_disconnect' '-Wl,-U,_multigraph_disconnectnode' '-Wl,-U,_multigraph_dependency_chain' '-Wl,-U,_multigraph_new' '-Wl,-U,_multinode_new' '-Wl,-U,_multinode_connect' '-Wl,-U,_multinode_disconnect' '-Wl,-U,_multinode_iterfun' '-Wl,-U,_multinode_dependency_chain' '-Wl,-U,_multiedge_disconnect' '-Wl,-U,_multiedge_new' '-Wl,-U,_multigraph_scheduler_new' '-Wl,-U,_multigraph_scheduler_acquire' '-Wl,-U,_multigraph_scheduler_release' '-Wl,-U,_multigraph_scheduler_complete' '-Wl,-U,_multigraph_parallel_iterator_new' '-Wl,-U,_multigraph_parallel_iterator_free' '-Wl,-U,_multigraph_parallel_iterator_scheduler' '-Wl,-U,_multigraph_parallel_iterator_data' '-Wl,-U,_multigraph_parallel_iterator_execute' '-Wl,-U,_multigraph_parallel_iterator_workerproc' '-Wl,-U,_jpatcher_bulk_load_begin' '-Wl,-U,_jpatcher_bulk_load_end' '-Wl,-U,_jpatcher_load' '-Wl,-U,_jpatcher_load_frombuffer' '-Wl,-U,_jpatcher_load_fromdictionary' '-Wl,-U,_jpatcher_load_namespace' '-Wl,-U,_jpatcher_load_frombuffer_namespace' '-Wl,-U,_jpatcher_load_fromdictionary_namespace' '-Wl,-U,_jdesktopui_new' '-Wl,-U,_jdesktopui_destroy' '-Wl,-U,_jdesktopui_setvisible' '-Wl,-U,_jdesktopui_setalwaysontop' '-Wl,-U,_jdesktopui_setrect' '-Wl,-U,_jdesktopui_getrect' '-Wl,-U,_jdesktopui_setposition' '-Wl,-U,_jdesktopui_setfadetimes' '-Wl,-U,_jdesktopui_get_jgraphics' '-Wl,-U,_jdesktopui_redraw' '-Wl,-U,_jdesktopui_redrawrect' '-Wl,-U,_object_subscribe' '-Wl,-U,_object_unsubscribe' '-Wl,-U,_sysparallel_task_workercount' '-Wl,-U,_backgroundtask_execute' '-Wl,-U,_backgroundtask_execute_method' '-Wl,-U,_backgroundtask_purge_object' '-Wl,-U,_backgroundtask_join_object' '-Wl,-U,_backgroundtask_cancel' '-Wl,-U,_backgroundtask_join' '-Wl,-U,_jgraphics_image_surface_create_for_data_premult' '-Wl,-U,_jgraphics_create_zoomed' '-Wl,-U,_jgraphics_get_target' '-Wl,-U,_jgraphics_pop_group' '-Wl,-U,_jgraphics_get_group_target' '-Wl,-U,_jgraphics_pop_group_surface' '-Wl,-U,_syntax_addtoken' '-Wl,-U,_object_register_getnames' '-Wl,-U,_dictionary_clone_to_existing' '-Wl,-U,_dictionary_clone' '-Wl,-U,_dictionary_merge_to_existing' '-Wl,-U,_dictionary_copy_nonunique_to_existing' '-Wl,-U,_patcherdomain_namespace_init' '-Wl,-U,_patcherdomain_node_new' '-Wl,-U,_patcherdomain_node_free' '-Wl,-U,_patcherdomain_makeinlets' '-Wl,-U,_patcherdomain_makeoutlets' '-Wl,-U,_patcherdomain_inlets_resize' '-Wl,-U,_patcherdomain_outlets_resize' '-Wl,-U,_patcherdomain_freeinlets' '-Wl,-U,_patcherdomain_freeoutlets' '-Wl,-U,_patcherdomain_class_register' '-Wl,-U,_patcherdomain_simple_connectionaccept' '-Wl,-U,_patcherdomain_simple_patchlineupdate' '-Wl,-U,_inlet_delete' '-Wl,-U,_outlet_delete' '-Wl,-U,_proxy_append' '-Wl,-U,_proxy_insert' '-Wl,-U,_proxy_new_forinlet' '-Wl,-U,_proxy_delete' '-Wl,-U,_proxy_setinletptr' '-Wl,-U,_proxy_getinletptr' '-Wl,-U,_jgraphics_bubble' '-Wl,-U,_class_subclass' '-Wl,-U,_class_super_construct' '-Wl,-U,_class_super_construct_imp' '-Wl,-U,_object_super_method' '-Wl,-U,_object_super_method_imp' '-Wl,-U,_object_this_method' '-Wl,-U,_object_this_method_imp' '-Wl,-U,_object_obex_chuck' '-Wl,-U,_object_attr_touch' '-Wl,-U,_object_attr_touch_parse' '-Wl,-U,_object_method_direct_getmethod' '-Wl,-U,_object_method_direct_getobject' '-Wl,-U,_object_super_getmethod' '-Wl,-U,_object_typedwrapper_get' '-Wl,-U,_usergesture_begin' '-Wl,-U,_usergesture_end' '-Wl,-U,_usergesture_add_live_undo_subscriber' '-Wl,-U,_db_open' '-Wl,-U,_db_close' '-Wl,-U,_db_query' '-Wl,-U,_db_query_direct' '-Wl,-U,_db_query_silent' '-Wl,-U,_db_query_getlastinsertid' '-Wl,-U,_db_query_table_new' '-Wl,-U,_db_query_table_addcolumn' '-Wl,-U,_db_transaction_start' '-Wl,-U,_db_transaction_end' '-Wl,-U,_db_transaction_flush' '-Wl,-U,_db_view_create' '-Wl,-U,_db_view_remove' '-Wl,-U,_db_view_getresult' '-Wl,-U,_db_view_setquery' '-Wl,-U,_db_result_nextrecord' '-Wl,-U,_db_result_reset' '-Wl,-U,_db_result_clear' '-Wl,-U,_db_result_numrecords' '-Wl,-U,_db_result_numfields' '-Wl,-U,_db_result_fieldname' '-Wl,-U,_db_result_string' '-Wl,-U,_db_result_long' '-Wl,-U,_db_result_float' '-Wl,-U,_db_result_datetimeinseconds' '-Wl,-U,_db_util_stringtodate' '-Wl,-U,_db_util_datetostring' '-Wl,-U,_eventcontext_begin' '-Wl,-U,_eventcontext_end' '-Wl,-U,_eventcontext_get' '-Wl,-U,_eventcontext_set' '-Wl,-U,_collectionlist_read' '-Wl,-U,_collection_updatefromdictionary' '-Wl,-U,_collection_deletenamed' '-Wl,-U,_collection_renamenamed' '-Wl,-U,_collection_getallnames' '-Wl,-U,_schedule_queue_new' '-Wl,-U,_schedule_queue' '-Wl,-U,_lockfreequeue_free' '-Wl,-U,_lockfreequeue_new' '-Wl,-U,_lockfreequeue_pop' '-Wl,-U,_lockfreequeue_push' '-Wl,-U,_lockfreequeue_isempty' '-Wl,-U,_class_attr_setstyle' '-Wl,-U,_class_attr_style_alias' '-Wl,-U,_class_attr_setfill' '-Wl,-U,_class_addstyleattr' '-Wl,-U,_style_getmenu' '-Wl,-U,_style_handlemenu' '-Wl,-U,_dynamiccolor_getmenu' '-Wl,-U,_dynamiccolor_handlemenu' '-Wl,-U,_object_attr_getinherited' '-Wl,-U,_object_attr_setinherited' '-Wl,-U,_object_style_setfillattribute' '-Wl,-U,_class_attr_stylemap' '-Wl,-U,_object_attr_attrname_forstylemap' '-Wl,-U,_object_attr_stylemapname' '-Wl,-U,_jgraphics_triangle' '-Wl,-U,_jgraphics_jrgba_set_brightness' '-Wl,-U,_jpopupmenu_setstandardstyle' '-Wl,-U,_jgraphics_attr_setfill' '-Wl,-U,_jgraphics_attr_setfill_transformed' '-Wl,-U,_jgraphics_attr_fillrect' '-Wl,-U,_object_attr_getfillcolor_atposition' '-Wl,-U,_object_attr_getfill' '-Wl,-U,_jsvg_remap_create' '-Wl,-U,_jsvg_remap_destroy' '-Wl,-U,_jsvg_remap_addcolor' '-Wl,-U,_jsvg_remap_addsinglecolor' '-Wl,-U,_jsvg_remap_perform' '-Wl,-U,_jsvg_load_cached' '-Wl,-U,_jgraphics_draw_jsvg' '-Wl,-U,_objectcollection_addobject' '-Wl,-U,_objectcollection_addtext' '-Wl,-U,_ctopcpy' '-Wl,-U,_ptoccpy' '-Wl,-U,_pstrcpy' '-Wl,-U,_plug_getoptions' '-Wl,-U,_path_fromfsref' '-Wl,-U,_path_tofsref' '-Wl,-U,_fontinfo_prefcheckencoding' '-Wl,-U,_fontinfo_getencoding' '-Wl,-U,_fontinfo_reconverthandle' '-Wl,-U,_fontinfo_convert' '-Wl,-U,_rescopy' '-Wl,-U,_max_debug_is_debugger_attached' '-Wl,-U,_unibrowser_search_dosearch' '-Wl,-U,_unibrowser_search_autocomplete_dosearch' '-Wl,-U,_unibrowser_search_collection_getall' '-Wl,-U,_unibrowser_search_snippets_dosearch' '-Wl,-U,_unibrowser_search_getsnippetdictionary' '-Wl,-U,_snapshotwriter_addpayload' '-Wl,-U,_snapshotwriter_addlist' '-Wl,-U,_snapshotreader_from_dictionary' '-Wl,-U,_snapshotreader_from_userpath' '-Wl,-U,_snapshotreader_fitstype' '-Wl,-U,_snapshotreader_getpayload' '-Wl,-U,_snapshotreader_getlist' '-Wl,-U,_snapshotreader_haspayload' '-Wl,-U,_snapshotreader_haslist' '-Wl,-U,_snapshotreader_getname' '-Wl,-U,_snapshotreader_getorigin' '-Wl,-U,_snapshotlist_setup' '-Wl,-U,_snapshotlist_will_restore' '-Wl,-U,_snapshotlist_initial_restore' '-Wl,-U,_snapshotlist_momentary_snapshot' '-Wl,-U,_snapshotlist_devalidate_snapshot' '-Wl,-U,_snapshotlist_forceupdatefilesnapshots' '-Wl,-U,_snapshotlist_appendtodictionary' '-Wl,-U,_snapshotlist_getvalueof' '-Wl,-U,_snapshotlist_setvalueof' '-Wl,-U,_snapshotlist_fileusage' '-Wl,-U,_object_attr_obsolete_getter' '-Wl,-U,_object_attr_obsolete_setter' '-Wl,-U,_object_method_obsolete' '-Wl,-U,_updatepath_pathhaschanged' '-Wl,-U,_sysinfo_getosversion' '-Wl,-U,_object_attr_lock' '-Wl,-U,_object_attr_unlock' '-Wl,-U,_dictionary_transaction_lock' '-Wl,-U,_dictionary_transaction_unlock' '-Wl,-U,_charset_urlencode' '-Wl,-U,_jpatcher_setnextobexprototype' '-Wl,-U,_jpatcher_getnextobexprototype' '-Wl,-U,_sysinfo_gestalt_get_sysv' '-Wl,-U,_sysinfo_gestalt_get_sysvers' '-Wl,-U,_sysinfo_gestalt_get_systemversion' '-Wl,-U,_sysinfo_gestalt_get_pid' '-Wl,-U,_sysinfo_gestalt_get_processname' '-Wl,-U,_sysinfo_gestalt_get_processorcount' '-Wl,-U,_sysinfo_gestalt_get_physicalmemory' '-Wl,-U,_sysinfo_gestalt_get_hostname' '-Wl,-U,_sysinfo_gestalt_get_arguments' '-Wl,-U,_sysinfo_gestalt_get_environment' '-Wl,-U,_sysinfo_getappname' '-Wl,-U,_sysinfo_getarchitecture' '-Wl,-U,_jgraphics_path_getpointalongpath' '-Wl,-U,_jgraphics_path_getnearestpoint' '-Wl,-U,_jgraphics_path_getlength' '-Wl,-U,_class_attr_dynamiccolor_init' '-Wl,-U,_object_attr_dynamiccolor_supported' '-Wl,-U,_object_attr_dynamiccolor_setsym_setup' '-Wl,-U,_object_attr_dynamiccolor_getname' '-Wl,-U,_object_attr_dynamiccolor_setname' '-Wl,-U,_object_attr_dynamiccolor_geton' '-Wl,-U,_object_attr_dynamiccolor_seton' '-Wl,-U,_object_attr_dynamiccolor_getregular' '-Wl,-U,_object_attr_dynamiccolor_setregular' '-Wl,-U,_object_attr_dynamiccolor_getregularrgba' '-Wl,-U,_object_attr_dynamiccolor_setregularrgba' '-Wl,-U,_object_attr_dynamiccolor_gethumanname' '-Wl,-U,_object_attr_dynamiccolor_apply' '-Wl,-U,_filetypelist_file_matches' '-Wl,-U,_filetypelist_gettypes' '-Wl,-U,_filetypelist_addtypes' '-Wl,-U,_filetypelist_gettypesym' '-Wl,-U,_filetypelist_to_types_and_suffixes' '-Wl,-U,_filetypelist_from_types_and_suffixes' '-Wl,-U,_filetypelist_from_types' '-Wl,-U,_types_and_suffixes_setup' '-Wl,-U,_types_and_suffixes_cleanup' '-Wl,-U,_types_and_suffixes_free' '-Wl,-U,_fuzzy_floatcmp' '-Wl,-U,_copyatoms' '-Wl,-U,_cloneatoms'

================================================
FILE: install/mkl.cmake
================================================
find_package(MKL QUIET)

if(NOT TARGET caffe2::mkl)
  add_library(caffe2::mkl INTERFACE IMPORTED)
endif()

target_include_directories(caffe2::mkl INTERFACE ${MKL_INCLUDE_DIR})
#target_link_libraries(caffe2::mkl INTERFACE ${MKL_LIBRARIES})
foreach(MKL_LIB IN LISTS MKL_LIBRARIES)
  if(EXISTS "${MKL_LIB}")
    get_filename_component(MKL_LINK_DIR "${MKL_LIB}" DIRECTORY)
    if(IS_DIRECTORY "${MKL_LINK_DIR}")
      target_link_directories(caffe2::mkl INTERFACE "${MKL_LINK_DIR}")
    endif()
  endif()
endforeach()

# TODO: This is a hack, it will not pick up architecture dependent
# MKL libraries correctly; see https://github.com/pytorch/pytorch/issues/73008
set_property(
  TARGET caffe2::mkl PROPERTY INTERFACE_LINK_DIRECTORIES
  ${MKL_ROOT}/lib ${MKL_ROOT}/lib/intel64 ${MKL_ROOT}/lib/intel64_win ${MKL_ROOT}/lib/win-x64)


================================================
FILE: install/patch_with_vst.sh
================================================
#!/bin/bash

# Default values
pd=0
max=0

function print_help() {
    echo "Usage: $0 [--pd_path[=val]] (default: ~/Documents/Pd) [--max[=val]] (by default, look in all ~/Documents/Max X/ ; if specified, look for externals sub-folder)"
}

# Parse arguments
while [[ $# -gt 0 ]]; do
    case "$1" in
        --pd=*)
            pd=1
            pd_path="${1#*=}"
            shift
            ;;
        --pd)
            pd=1
            shift
            ;;
        --max=*)
            max=1
            max_path="${1#*=}"
            shift
            ;;
        --max)
            max=1
            shift
            ;;
        --help|-h)
            print_help
            exit 0
            ;;
        *)
            echo "Unknown option: $1"
            shift
            ;;
    esac
done


function patch_max_external() {
    find "$1" -name "nn_tilde" -type d -mindepth 2 -print0 | while IFS= read -r -d '' ext_dir; do
    if [[ -d "$ext_dir/externals" ]]; then
        echo "found nn_tilde at $ext_dir"; 
        find "$ext_dir/externals" -name "*.mxo" -print0 | while IFS= read -r -d '' ext_path; do
            # echo "found external at $ext_path"; 
            ext_name=$(basename "$ext_path")
            find "$ext_dir/support" -name "*.dylib" -print0 | while IFS= read -r -d '' dylib_path; do
                dylib_name=$(basename "$dylib_path")
                echo "fixing library : $dylib_name"
                new_path="/Library/Application Support/ACIDS/RAVE/$dylib_name"
                if [[ ! -e "$new_path" ]]; then 
                    echo "[WARNING] library not found : $new_path. Patch may not work"
                fi
                install_name_tool -change "@loader_path/../../../../support/$dylib_name" "/Library/Application Support/ACIDS/RAVE/$dylib_name" "${ext_path}/Contents/MacOS/${ext_name%.*}" 2> /dev/null
            done
            codesign --deep --force --sign - "${ext_path}/Contents/MacOS/${ext_name%.*}"
        done
    fi
    done
}

function patch_pd_external() {
    ext_dir=$1
    if [[ ! "$(basename $ext_dir)" == "nn_tilde" ]]; then
        ext_dir="${ext_dir}/externals/nn_tilde"
    fi
    if [[ -e $(realpath $ext_dir) ]]; then
        find "$ext_dir" -name "nn~.pd_*" -print0 | while IFS= read -r -d '' ext_path; do
            ext_name=$(basename "$ext_path")
            find "$ext_dir" -name "*.dylib" -print0 | while IFS= read -r -d '' dylib_path; do
                dylib_name=$(basename "$dylib_path")
                echo "fixing library : $dylib_name"
                new_path="/Library/Application Support/ACIDS/RAVE/$dylib_name"
                if [[ ! -e "$new_path" ]]; then 
                    echo "[WARNING] library not found : $new_path. Patch may not work"
                fi
                echo install_name_tool -change "@rpath/$dylib_name" "/Library/Application Support/ACIDS/RAVE/$dylib_name" "${ext_path}" 2> /dev/null
            done
            codesign --deep --force --sign - "${ext_path}"
        done
    else
        echo "folder $ext_dir not found".  
    fi
}


if [[ "$max" -eq 1 ]]; then
    if [[ -n "$max_path" ]]; then 
        patch_max_external "$max_path" 
    else
        find ~/Documents -maxdepth 1 -name "Max *" -type d -print0 | while IFS= read -r -d '' max_dir; do
            if [[ -d $max_dir ]]; then 
                patch_max_external "$max_dir" 
            else 
                echo "$max_dir does not exists" 
            fi
        done 
    fi
fi

if [[ "$pd" -eq 1 ]]; then
    if [[ -n "$max_path" ]]; then 
        patch_pd_external "$pd_path" 
    else
        patch_pd_external "$HOME/Documents/Pd"
    fi
fi

================================================
FILE: package-info.json.in
================================================
{
	"name" : "nn_tilde",
	"displayname" : "nn~",
	"version" : "${VERSION}",
	"author" : "ACIDS",
	"authors" : [ "Antoine Caillon", "Axel Chemla--Romeu-Santos", "Philippe Esling", "Nils Demerlé"],
	"description" : "Max interfaces for deep neural generation",
	"tags" : [ "audio", "ai", "neural synthesis"],
	"website" : "http://www.github.com/acids-ircam/nn_tilde",
	"extends" : "",
	"extensible" : 1,
	"max_version_min" : "8.0.2",
	"max_version_max" : "none",
	"os" : 	{
		"macintosh" : 		{
			"min_version" : "10.12.x",
			"platform" : [ "x64", "aarch64" ]
		}
,
		"windows" : 		{
			"min_version" : "7",
			"platform" : [ "x64" ]
		}

	}
,
	"homepatcher" : "help_hub.maxpat",
	"package_extra" : 	{
	}
,
	"c74install" : 1,
	"installdate" : 3745215604
}


================================================
FILE: python_tools/__init__.py
================================================

import pathlib
import torch
TMP_FILE_OUTPUT = pathlib.Path(__file__).parent / ".tmpfile"
from .buffer import Buffer
TYPE_HASH = {bool: 0, int: 1, float: 2, str: 3, torch.Tensor: 4, Buffer: 5}

from . import templates
from .module import Module

================================================
FILE: python_tools/buffer.py
================================================
import torch
from typing import  List, Dict, Optional

class Buffer():
    value: torch.Tensor
    min_samples: int
    max_samples: int
    def __init__(self, tensor: Optional[torch.Tensor] = None, 
                 min_samples: int = -1, 
                 max_samples: int = -1, 
                 sr: int | float | None = -1):
        self.value = torch.tensor(0)
        self.init_value()
        if tensor is not None:
            self.value = tensor
        self.min_samples = min_samples
        self.max_sa
Download .txt
gitextract_nq2axijl/

├── .github/
│   └── workflows/
│       ├── build.yaml
│       └── python-publish.yaml
├── .gitignore
├── .gitmodules
├── LICENSE
├── MANIFEST.in
├── README.md
├── docs/
│   └── index.md
├── extras/
│   ├── 01_nn_attributes.maxpat
│   └── generate_test_model.py
├── install/
│   ├── MaxAPI.lib
│   ├── dylib_fix.py
│   ├── macos_max_makeub.sh
│   ├── macos_pd_makeub.sh
│   ├── max-linker-flags.txt
│   ├── mkl.cmake
│   └── patch_with_vst.sh
├── package-info.json.in
├── python_tools/
│   ├── __init__.py
│   ├── buffer.py
│   ├── codegen.py
│   ├── module.py
│   ├── templates/
│   │   ├── __init__.py
│   │   ├── attributes.py
│   │   └── buffers.py
│   └── test/
│       ├── test_attributes.maxpat
│       ├── test_attributes.py
│       ├── test_buffers.py
│       ├── test_list_attributes.maxpat
│       └── utils.py
├── requirements.txt
├── requirements_darwin_x64.txt
├── scripting/
│   ├── README.md
│   ├── effects.py
│   ├── effects.ts
│   ├── features.py
│   ├── features.ts
│   ├── scripting.maxpat
│   └── unmix.py
├── setup.py
└── src/
    ├── .nojekyll
    ├── CMakeLists.txt
    ├── backend/
    │   ├── CMakeLists.txt
    │   ├── backend.cpp
    │   ├── backend.h
    │   ├── parsing_utils.cpp
    │   └── parsing_utils.h
    ├── cmake/
    │   └── add_torch.cmake
    ├── extras/
    │   ├── nn~ Overview.maxpat
    │   └── patch_with_vst.sh
    ├── frontend/
    │   ├── maxmsp/
    │   │   ├── mc.nn_tilde/
    │   │   │   ├── CMakeLists.txt
    │   │   │   └── mc.nn_tilde.cpp
    │   │   ├── mcs.nn_tilde/
    │   │   │   ├── CMakeLists.txt
    │   │   │   └── mcs.nn_tilde.cpp
    │   │   ├── nn.info/
    │   │   │   ├── CMakeLists.txt
    │   │   │   └── nn.info.cpp
    │   │   ├── nn_tilde/
    │   │   │   ├── CMakeLists.txt
    │   │   │   ├── nn_tilde.cpp
    │   │   │   ├── nn_tilde_test.cpp
    │   │   │   └── nn~.maxhelp
    │   │   └── shared/
    │   │       ├── array_tools.h
    │   │       ├── buffer_tools.h
    │   │       ├── dict_utils.h
    │   │       ├── max_model_download.h
    │   │       └── nn_base.h
    │   └── puredata/
    │       ├── nn_tilde/
    │       │   ├── CMakeLists.txt
    │       │   ├── nn_tilde.cpp
    │       │   └── nn~-help.pd
    │       └── shared/
    │           ├── pd_buffer_manager.h
    │           └── pd_model_download.h
    ├── help/
    │   ├── mc.nn~.maxhelp
    │   ├── mcs.nn~.maxhelp
    │   ├── nn.info.maxhelp
    │   └── nn~.maxhelp
    ├── models/
    │   ├── demo_attributes.ts
    │   ├── demo_buffers.ts
    │   ├── demo_mc.ts
    │   ├── effects.ts
    │   ├── features.ts
    │   └── wavetable.ts
    ├── patchers/
    │   ├── after_help.maxpat
    │   ├── help_hub.maxpat
    │   ├── latent_remote/
    │   │   ├── M4L.latent_remote.js
    │   │   ├── M4L.latent_remote.maxhelp
    │   │   ├── M4L.latent_remote.maxpat
    │   │   ├── M4L.latent_slider.maxhelp
    │   │   ├── M4L.latent_slider.maxpat
    │   │   ├── M4L.latent_slider_component.maxpat
    │   │   ├── frand.maxpat
    │   │   ├── ierf.gendsp
    │   │   ├── latent_remote.js
    │   │   ├── latent_remote.maxhelp
    │   │   ├── latent_remote.maxpat
    │   │   ├── latent_slider.maxhelp
    │   │   ├── latent_slider.maxpat
    │   │   └── latent_slider_component.maxpat
    │   ├── rave_help.maxpat
    │   ├── ts_help.maxpat
    │   └── vschaos_help.maxpat
    ├── shared/
    │   ├── circular_buffer.h
    │   ├── model_download.h
    │   └── static_buffer.h
    └── source/
        ├── attributes.py
        ├── buffers.py
        ├── effects.py
        ├── features.py
        └── unmix.py
Download .txt
SYMBOL INDEX (320 symbols across 37 files)

FILE: extras/generate_test_model.py
  class AudioUtils (line 9) | class AudioUtils(nn_tilde.Module):
    method __init__ (line 11) | def __init__(self):
    method thru (line 96) | def thru(self, x: torch.Tensor):
    method invert (line 101) | def invert(self, x: torch.Tensor):
    method add (line 108) | def add(self, x: torch.Tensor):
    method fractalize (line 112) | def fractalize(self, x: torch.Tensor):
    method polynomial (line 119) | def polynomial(self, x: torch.Tensor):
    method saturate (line 126) | def saturate(self, x: torch.Tensor):
    method midside (line 134) | def midside(self, x: torch.Tensor):
    method rms (line 139) | def rms(self, x: torch.Tensor):
    method get_gain_factor (line 147) | def get_gain_factor(self) -> float:
    method get_polynomial_factors (line 151) | def get_polynomial_factors(self) -> List[float]:
    method get_saturate_mode (line 158) | def get_saturate_mode(self) -> str:
    method get_invert_signal (line 162) | def get_invert_signal(self) -> bool:
    method get_fractal (line 166) | def get_fractal(self) -> Tuple[int, float]:
    method set_gain_factor (line 174) | def set_gain_factor(self, x: float) -> int:
    method set_polynomial_factors (line 179) | def set_polynomial_factors(self, factor1: float, factor2: float,
    method set_saturate_mode (line 186) | def set_saturate_mode(self, x: str):
    method set_invert_signal (line 194) | def set_invert_signal(self, x: bool):
    method set_fractal (line 199) | def set_fractal(self, factor: int, amount: float):

FILE: install/dylib_fix.py
  function is_executable (line 26) | def is_executable(file_path):
  function extract_rpaths (line 49) | def extract_rpaths(executable_path, replace_dynamic_paths = True):
  function get_library_name (line 80) | def get_library_name(libname):
  function get_dependencies (line 84) | def get_dependencies(filepath, dir_filter=[], lib_filter=[], rpath=None):
  function get_architectures (line 116) | def get_architectures(file_path):
  function get_find_results (line 132) | def get_find_results(directory, pattern):
  function find_candidates_for (line 149) | def find_candidates_for(lib_name, lib_dir, lib_arch, allow_different_arc...
  function find_most_relevant_dylib_candidate (line 181) | def find_most_relevant_dylib_candidate(name, candidates, accept_weak_mat...
  function clean_rpath_for_target_executable (line 215) | def clean_rpath_for_target_executable(lib_path):
  function most_relevant_lib (line 223) | def most_relevant_lib(lib_name, path_dicts, dep_paths=[], arch="arm64"):
  function lib_from_exc_path (line 251) | def lib_from_exc_path(exc_path, lib_path):
  function parse_actions_from_executable (line 260) | def parse_actions_from_executable(exec_path, dep_paths=[], main_dir = No...
  function perform_action (line 327) | def perform_action(action, main_dir):
  function print_action (line 392) | def print_action(idx, action):

FILE: python_tools/buffer.py
  class Buffer (line 4) | class Buffer():
    method __init__ (line 8) | def __init__(self, tensor: Optional[torch.Tensor] = None,
    method check_bounds (line 20) | def check_bounds(self, x: torch.Tensor) -> bool:
    method from_buffer (line 28) | def from_buffer(self, buffer: "Buffer"):
    method copy (line 32) | def copy(buffer: "Buffer"):
    method set_value (line 37) | def set_value(self, x: torch.Tensor, sr: int | float | None = None) ->...
    method shape (line 49) | def shape(self) -> List[int]:
    method has_value (line 56) | def has_value(self) -> bool:
    method get_value (line 59) | def get_value(self) -> torch.Tensor:
    method init_value (line 62) | def init_value(self) -> None:
    method to_str (line 65) | def to_str(self) -> str:

FILE: python_tools/codegen.py
  class TmpFileSession (line 7) | class TmpFileSession(object):
    method __init__ (line 8) | def __init__(self, obj):
    method get (line 10) | def get(self):
    method close (line 15) | def close(self):
  function tmp_file_session (line 23) | def tmp_file_session(obj):
  function method_from_template (line 27) | def method_from_template(file_session: TmpFileSession, template: str, gl...

FILE: python_tools/module.py
  class Module (line 16) | class Module(torch.nn.Module):
    method __init__ (line 18) | def __init__(self, sr: int | None = None) -> None:
    method register_method (line 27) | def register_method(
    method register_attribute (line 140) | def register_attribute(self, attribute_name: str,
    method get_methods (line 178) | def get_methods(self):
    method get_attributes (line 182) | def get_attributes(self) -> List[str]:
    method export_to_ts (line 185) | def export_to_ts(self, path):
    method get_buffer_attributes (line 192) | def get_buffer_attributes(self) -> List[str]:
    method is_buffer_empty (line 199) | def is_buffer_empty(self, buffer_name: str) -> bool:
    method get_sample_rate (line 213) | def get_sample_rate(self) -> int:
    method set_sample_rate (line 227) | def set_sample_rate(self, sample_rate: int | None) -> None:
    method __prepare_scriptable__ (line 232) | def __prepare_scriptable__(self):
    method finish (line 237) | def finish(self):
    method _build_buffer_attribute_methods (line 242) | def _build_buffer_attribute_methods(self):
    method _build_missing_attribute_callbacks (line 267) | def _build_missing_attribute_callbacks(self):
    method __del__ (line 291) | def __del__(self):

FILE: python_tools/templates/attributes.py
  function _get_sig_type (line 7) | def _get_sig_type(param):
  function get_attribute_setter (line 19) | def get_attribute_setter(attribute_name, attribute_params):
  function get_attribute_getter (line 34) | def get_attribute_getter(attribute_name, attribute_params):

FILE: python_tools/templates/buffers.py
  function set_buffer_attribute_template (line 3) | def set_buffer_attribute_template(buffer_names):
  function clear_buffer_attribute_template (line 17) | def clear_buffer_attribute_template(buffer_names):
  function is_buffer_empty_template (line 30) | def is_buffer_empty_template(buffer_names):

FILE: python_tools/test/test_attributes.py
  class AttributeFoo (line 13) | class AttributeFoo(Module):
    method __init__ (line 14) | def __init__(self):
    method forward (line 24) | def forward(self, x: torch.Tensor):
  class ListAttributeFoo (line 31) | class ListAttributeFoo(Module):
    method __init__ (line 32) | def __init__(self, n: int, attribute_type: type):
    method forward (line 43) | def forward(self, x):
  function _default (line 49) | def _default(attr_hash: int):
  class TensorAttributeFoo (line 62) | class TensorAttributeFoo(Module):
    method __init__ (line 63) | def __init__(self):
    method forward (line 70) | def forward(self, x: torch.Tensor):
  function test_attributes (line 78) | def test_attributes(module_class, out_dir, test_name):
  function test_list_attributes (line 94) | def test_list_attributes(n, attr_type, module_class, out_dir, test_name):
  function test_list_attributes (line 107) | def test_list_attributes(n, attr_type, module_class, out_dir, test_name):
  function test_tensor_attributes (line 117) | def test_tensor_attributes(module_class, out_dir, test_name):

FILE: python_tools/test/test_buffers.py
  class BufferFoo (line 12) | class BufferFoo(Module):
    method __init__ (line 14) | def __init__(self, test_method: bool = False):
    method get_loudness (line 22) | def get_loudness(self, x: torch.Tensor) -> float:
    method loudness (line 26) | def loudness(self, x: torch.Tensor):
    method shape (line 35) | def shape(self, x: torch.Tensor):
    method get_sr (line 51) | def get_sr(self, x: torch.Tensor):
  function test_buffer_attributes (line 64) | def test_buffer_attributes(module_class, out_dir, test_name):
  function test_scripted_buffer_attributes (line 75) | def test_scripted_buffer_attributes(module_class, out_dir, test_name):

FILE: python_tools/test/utils.py
  function out_dir (line 9) | def out_dir() -> Path:
  function test_name (line 16) | def test_name(request):
  function import_code (line 19) | def import_code(code, glob, loc):

FILE: scripting/effects.py
  class AudioUtils (line 16) | class AudioUtils(nn_tilde.Module):
    method __init__ (line 18) | def __init__(self):
    method thru (line 103) | def thru(self, x: torch.Tensor):
    method invert (line 108) | def invert(self, x: torch.Tensor):
    method add (line 115) | def add(self, x: torch.Tensor):
    method fractalize (line 119) | def fractalize(self, x: torch.Tensor):
    method polynomial (line 126) | def polynomial(self, x: torch.Tensor):
    method saturate (line 133) | def saturate(self, x: torch.Tensor):
    method midside (line 141) | def midside(self, x: torch.Tensor):
    method rms (line 146) | def rms(self, x: torch.Tensor):
    method get_gain_factor (line 154) | def get_gain_factor(self) -> float:
    method get_polynomial_factors (line 158) | def get_polynomial_factors(self) -> List[float]:
    method get_saturate_mode (line 165) | def get_saturate_mode(self) -> str:
    method get_invert_signal (line 169) | def get_invert_signal(self) -> bool:
    method get_fractal (line 173) | def get_fractal(self) -> Tuple[int, float]:
    method set_gain_factor (line 181) | def set_gain_factor(self, x: float) -> int:
    method set_polynomial_factors (line 186) | def set_polynomial_factors(self, factor1: float, factor2: float,
    method set_saturate_mode (line 193) | def set_saturate_mode(self, x: str):
    method set_invert_signal (line 201) | def set_invert_signal(self, x: bool):
    method set_fractal (line 206) | def set_fractal(self, factor: int, amount: float):

FILE: scripting/features.py
  class AudioFeatures (line 21) | class AudioFeatures(nn_tilde.Module):
    method __init__ (line 23) | def __init__(self,
    method _compute_spectrogram (line 91) | def _compute_spectrogram(self, x: torch.Tensor):
    method rms (line 107) | def rms(self, x: torch.Tensor):
    method centroid (line 113) | def centroid(self, x: torch.Tensor):
    method bandwidth (line 126) | def bandwidth(self, x: torch.Tensor, amin: float = 1e-10, power: float...
    method flatness (line 145) | def flatness(self, x: torch.Tensor, amin: float = 1e-10, power: float ...
    method get_sr (line 158) | def get_sr(self) -> int:
    method set_sr (line 166) | def set_sr(self, x: int) -> int:

FILE: scripting/unmix.py
  class Unmix (line 23) | class Unmix(nn_tilde.Module):
    method __init__ (line 25) | def __init__(self,
    method forward (line 44) | def forward(self, input: torch.Tensor):
    method get_sr (line 55) | def get_sr(self) -> int:
    method set_sr (line 63) | def set_sr(self, x: int) -> int:
  function preprocess (line 67) | def preprocess(

FILE: src/backend/backend.cpp
  function tensor_to_str (line 17) | std::string tensor_to_str(torch::Tensor &tsr) {
  function ModelInfo (line 567) | ModelInfo Backend::get_model_info() {

FILE: src/backend/backend.h
  type MethodProperties (line 11) | struct MethodProperties {
  type AttributeProperties (line 19) | struct AttributeProperties {
  type ModelInfo (line 24) | struct ModelInfo {
  type LockedModel (line 31) | struct LockedModel {
  function class (line 37) | class Backend {

FILE: src/backend/parsing_utils.cpp
  function to_bool (line 3) | bool to_bool(std::string str) {
  function to_int (line 11) | int to_int(std::string str) { return stoi(str); }
  function to_float (line 13) | float to_float(std::string str) { return stof(str); }

FILE: src/frontend/maxmsp/mc.nn_tilde/mc.nn_tilde.cpp
  function model_perform (line 6) | void model_perform(nn_class* nn_instance) {
  function model_perform_async (line 22) | void model_perform_async(nn_class* nn_instance) {
  class mc_nn (line 71) | class mc_nn: public nn_base<mc_nn, mc_operator<>> {
    method get_external_name (line 79) | static std::string get_external_name() { return "mc.nn~";}
    method mc_nn (line 80) | mc_nn(const atoms &args = {}) {
    method get_sample_rate (line 84) | int get_sample_rate() override {
    method init_external (line 88) | void init_external(const atoms &args) override {
    method init_buffers_at_init (line 109) | bool init_buffers_at_init() override { return true; }
  function simplemc_multichanneloutputs (line 359) | long simplemc_multichanneloutputs(c74::max::t_object *x, long index,
  function simplemc_inputchanged (line 365) | long simplemc_inputchanged(c74::max::t_object *x, long index, long count) {

FILE: src/frontend/maxmsp/mcs.nn_tilde/mcs.nn_tilde.cpp
  function model_perform (line 6) | void model_perform(nn_class* nn_instance) {
  function model_perform_async (line 22) | void model_perform_async(nn_class* nn_instance) {
  class mcs_nn (line 71) | class mcs_nn: public nn_base<mcs_nn, mc_operator<>> {
    method get_external_name (line 79) | static std::string get_external_name() { return "mcs.nn~";}
    method mcs_nn (line 80) | mcs_nn(const atoms &args = {}) {
    method get_sample_rate (line 84) | int get_sample_rate() override {
    method init_external (line 88) | void init_external(const atoms &args) override {
    method n_mc_inputs (line 104) | int n_mc_inputs() {
    method update_out_channels (line 119) | void update_out_channels() {
  function simplemc_multichanneloutputs (line 446) | long simplemc_multichanneloutputs(c74::max::t_object *x, long index,
  function simplemc_inputchanged (line 452) | long simplemc_inputchanged(c74::max::t_object *x, long index, long count) {

FILE: src/frontend/maxmsp/nn.info/nn.info.cpp
  class nn_info (line 18) | class nn_info : public object<nn_info>, public vector_operator<> {
    method perform (line 59) | void perform(audio_bundle input, audio_bundle output) {}
  function bang_callback (line 102) | message<> bang_callback{
  function dump_callback (line 111) | message<> dump_callback{
  function set_model_callback (line 119) | message<> set_model_callback{
  function get_path_callback (line 131) | message<> get_path_callback {
  function get_methods_callback (line 139) | message<> get_methods_callback {
  function get_attributes_callback (line 147) | message<> get_attributes_callback {
  function get_params_callback (line 156) | message<> get_params_callback {
  function get_dict_callback (line 176) | message<> get_dict_callback {
  function get_models_callback (line 185) | message<> get_models_callback {
  function download_models (line 194) | message <> download_models {
  function delete_models (line 221) | message <> delete_models {

FILE: src/frontend/maxmsp/nn_tilde/nn_tilde.cpp
  function model_perform (line 5) | void model_perform(nn_class* nn_instance) {
  function model_perform_async (line 22) | void model_perform_async(nn_class *nn_instance) {
  class nn (line 67) | class nn: public nn_base<nn, vector_operator<>> {
    method get_external_name (line 75) | static std::string get_external_name() {
    method nn (line 78) | nn(const atoms &args = {}) {
    method get_sample_rate (line 82) | int get_sample_rate() override {
    method init_process (line 86) | void init_process() override {
    method init_external (line 93) | void init_external(const atoms &args) override {

FILE: src/frontend/maxmsp/shared/array_tools.h
  function namespace (line 10) | namespace ArrayTools {

FILE: src/frontend/maxmsp/shared/buffer_tools.h
  function class (line 7) | class BufferManager {
  function get_buffer_index (line 52) | int BufferManager::get_buffer_index(std::vector<std::string> buffer_attr...
  function link_attribute_to_buffer (line 63) | void BufferManager::link_attribute_to_buffer(std::string buffer_name, c7...
  function append_if_buffer_element (line 72) | void BufferManager::append_if_buffer_element(Backend *model, Backend::Bu...
  function bind_buffer_attribute (line 127) | int BufferManager::bind_buffer_attribute(Backend *backend, std::string e...
  function unbind_buffer_attribute (line 156) | int BufferManager::unbind_buffer_attribute(Backend *backend, std::string...
  function modify_buffer_attribute (line 180) | int BufferManager::modify_buffer_attribute(Backend *backend, std::string...
  function init_buffer_list (line 231) | void BufferManager::init_buffer_list(Backend *backend, c74::min::object_...

FILE: src/frontend/maxmsp/shared/dict_utils.h
  function namespace (line 6) | namespace nn_tools {
  function json_walk (line 55) | void json_walk(max::t_dictionary* dict, nlohmann::json json) {
  function else (line 63) | else if (val.is_number_float()) {
  function else (line 65) | else if (val.is_string()) {
  function else (line 67) | else if (val.is_array()) {

FILE: src/frontend/maxmsp/shared/max_model_download.h
  function class (line 26) | class MaxModelDownloader: public ModelDownloader {
  function print_to_parent (line 82) | void MaxModelDownloader::print_to_parent(const std::string &message, con...
  function fill_dict (line 88) | void MaxModelDownloader::fill_dict(void* dict_to_fill) {

FILE: src/frontend/maxmsp/shared/nn_base.h
  function power_ceil (line 47) | unsigned power_ceil(unsigned x) {
  function std (line 70) | static std::string get_external_name() { return ""; }
  function virtual (line 83) | virtual void init_external(const atoms &args) {
  function virtual (line 96) | virtual bool init_buffers_at_init() { return true; }
  function can_perform (line 111) | bool can_perform() {
  function virtual (line 141) | virtual void perform(audio_bundle input, audio_bundle output) { }

FILE: src/frontend/puredata/nn_tilde/nn_tilde.cpp
  function get_executable_path (line 47) | std::string get_executable_path()
  function get_executable_path (line 68) | std::string get_executable_path()
  function get_executable_path (line 79) | std::string get_executable_path()
  function power_ceil (line 101) | unsigned power_ceil(unsigned x)
  type _nn_tilde (line 113) | struct _nn_tilde
  class PdErrorCatcher (line 152) | class PdErrorCatcher
    method PdErrorCatcher (line 159) | PdErrorCatcher(t_nn_tilde *obj) : x(obj)
  function model_perform (line 177) | void model_perform(t_nn_tilde *x)
  function t_int (line 192) | t_int *nn_tilde_perform(t_int *w)
  function nn_tilde_dsp (line 238) | void nn_tilde_dsp(t_nn_tilde *x, t_signal **sp)
  function nn_tilde_free (line 277) | void nn_tilde_free(t_nn_tilde *x)
  function resolve_file_path (line 283) | std::string resolve_file_path(t_nn_tilde *x, const char *filename)
  function create_buffers (line 316) | void create_buffers(t_nn_tilde *x, int in_dim, int out_dim)
  function nn_tilde_update_model_params (line 348) | bool nn_tilde_update_model_params(t_nn_tilde *x, t_symbol *method)
  function nn_tilde_load_model (line 409) | bool nn_tilde_load_model(t_nn_tilde *x, const char *path)
  function nn_tilde_bang (line 455) | void nn_tilde_bang(t_nn_tilde *x)
  function nn_tilde_method (line 623) | void nn_tilde_method(t_nn_tilde *x, t_symbol *s)
  function nn_tilde_bufsize (line 641) | void nn_tilde_bufsize(t_nn_tilde *x, t_floatarg size)
  function nn_tilde_load (line 672) | void nn_tilde_load(t_nn_tilde *x, t_symbol *s)
  function nn_tilde_gpu (line 695) | void nn_tilde_gpu(t_nn_tilde *x, t_floatarg arg)
  function nn_tilde_enable (line 718) | void nn_tilde_enable(t_nn_tilde *x, t_floatarg arg) { x->m_enabled = (bo...
  function nn_tilde_reload (line 719) | void nn_tilde_reload(t_nn_tilde *x) { x->m_model->reload(); }
  function nn_tilde_set (line 721) | void nn_tilde_set(t_nn_tilde *x, t_symbol *s, int argc, t_atom *argv)
  function nn_tilde_available_models (line 778) | void nn_tilde_available_models(t_nn_tilde *x)
  function nn_tilde_download (line 807) | void nn_tilde_download(t_nn_tilde *x, t_symbol *s, int argc, t_atom *argv)
  function nn_tilde_remove (line 848) | void nn_tilde_remove(t_nn_tilde *x, t_symbol *s)
  function startup_message (line 865) | void startup_message()
  function EXPORT (line 884) | EXPORT void nn_tilde_setup(void)

FILE: src/frontend/puredata/shared/pd_model_download.h
  function print_to_parent (line 23) | void print_to_parent(const std::string &message, const std::string &cana...
  function fill_dict (line 72) | void fill_dict(void *dict_to_fill) override

FILE: src/patchers/latent_remote/M4L.latent_remote.js
  function make_presentation_layout (line 29) | function make_presentation_layout() {
  function sliders (line 48) | function sliders(n_sliders) {
  function max_columns (line 114) | function max_columns(n_columns) {
  function update_patching_rect (line 124) | function update_patching_rect() {
  function slider_check_size (line 136) | function slider_check_size() {
  function clear (line 146) | function clear() {
  function faders (line 155) | function faders() {
  function faders_all (line 165) | function faders_all() {
  function fader (line 176) | function fader() {
  function dump_all (line 187) | function dump_all() {

FILE: src/patchers/latent_remote/latent_remote.js
  function make_presentation_layout (line 29) | function make_presentation_layout() {
  function sliders (line 48) | function sliders(n_sliders) {
  function max_columns (line 114) | function max_columns(n_columns) {
  function update_patching_rect (line 124) | function update_patching_rect() {
  function slider_check_size (line 136) | function slider_check_size() {
  function clear (line 146) | function clear() {
  function faders (line 155) | function faders() {
  function faders_all (line 165) | function faders_all() {
  function fader (line 176) | function fader() {
  function dump_all (line 187) | function dump_all() {

FILE: src/shared/circular_buffer.h
  function max_size (line 14) | size_t max_size() { return _max_size; }

FILE: src/shared/model_download.h
  function JSONWriteCallback (line 21) | size_t JSONWriteCallback(void* contents, size_t size, size_t nmemb, std:...
  function ModelWriteCallback (line 27) | size_t ModelWriteCallback(void* ptr, size_t size, size_t nmemb, FILE* st...
  function is_file_empty (line 31) | bool is_file_empty(const fs::path filePath) {
  function class (line 42) | class ModelDownloader {
  function has_valid_certificate (line 120) | bool ModelDownloader::has_valid_certificate() {
  function init_downloader (line 140) | int ModelDownloader::init_downloader(bool force_refresh) {
  function is_ready (line 150) | bool ModelDownloader::is_ready() {
  function update_available_models (line 158) | bool ModelDownloader::update_available_models() {
  function reload (line 189) | void ModelDownloader::reload() {
  function create_path (line 204) | bool ModelDownloader::create_path(const fs::path& path) {

FILE: src/shared/static_buffer.h
  function BufferShape (line 42) | BufferShape dims () {
  function sr (line 46) | double sr() { return _samplingRate; }
  function BufferData (line 48) | static BufferData get_empty_buffer(const size_t dim1, const size_t dim2) {
  function clear (line 52) | void clear() {
  function reset (line 56) | void reset() {
  function at (line 65) | float& at(const size_t dim1, const size_t dim2) {
  function put (line 69) | void put(data_type data, const size_t dim1, const size_t dim2) {

FILE: src/source/attributes.py
  class AttributeFoo (line 12) | class AttributeFoo(nn_tilde.Module):
    method __init__ (line 13) | def __init__(self):
    method set_attr_enum (line 26) | def set_attr_enum(self, animal: str) -> int:
    method set_attr_list (line 35) | def set_attr_list(self, val1: int, val2: str, val3: float, val4: bool):
    method forward (line 42) | def forward(self, x: torch.Tensor):

FILE: src/source/buffers.py
  class BufferFoo (line 12) | class BufferFoo(nn_tilde.Module):
    method __init__ (line 14) | def __init__(self, test_method: bool = False):
    method get_loudness (line 24) | def get_loudness(self, x: torch.Tensor) -> float:
    method loudness (line 28) | def loudness(self, x: torch.Tensor):
    method shape (line 37) | def shape(self, x: torch.Tensor):
    method get_sr (line 53) | def get_sr(self, x: torch.Tensor):

FILE: src/source/effects.py
  class AudioUtils (line 15) | class AudioUtils(nn_tilde.Module):
    method __init__ (line 17) | def __init__(self):
    method thru (line 102) | def thru(self, x: torch.Tensor):
    method invert (line 107) | def invert(self, x: torch.Tensor):
    method add (line 114) | def add(self, x: torch.Tensor):
    method fractalize (line 118) | def fractalize(self, x: torch.Tensor):
    method polynomial (line 125) | def polynomial(self, x: torch.Tensor):
    method saturate (line 132) | def saturate(self, x: torch.Tensor):
    method midside (line 140) | def midside(self, x: torch.Tensor):
    method rms (line 145) | def rms(self, x: torch.Tensor):
    method get_gain_factor (line 153) | def get_gain_factor(self) -> float:
    method get_polynomial_factors (line 157) | def get_polynomial_factors(self) -> List[float]:
    method get_saturate_mode (line 164) | def get_saturate_mode(self) -> str:
    method get_invert_signal (line 168) | def get_invert_signal(self) -> bool:
    method get_fractal (line 172) | def get_fractal(self) -> Tuple[int, float]:
    method set_gain_factor (line 180) | def set_gain_factor(self, x: float) -> int:
    method set_polynomial_factors (line 185) | def set_polynomial_factors(self, factor1: float, factor2: float,
    method set_saturate_mode (line 192) | def set_saturate_mode(self, x: str):
    method set_invert_signal (line 200) | def set_invert_signal(self, x: bool):
    method set_fractal (line 205) | def set_fractal(self, factor: int, amount: float):

FILE: src/source/features.py
  class AudioFeatures (line 27) | class AudioFeatures(nn_tilde.Module):
    method __init__ (line 29) | def __init__(self,
    method _compute_spectrogram (line 97) | def _compute_spectrogram(self, x: torch.Tensor):
    method rms (line 113) | def rms(self, x: torch.Tensor):
    method centroid (line 119) | def centroid(self, x: torch.Tensor):
    method bandwidth (line 132) | def bandwidth(self, x: torch.Tensor, amin: float = 1e-10, power: float...
    method flatness (line 151) | def flatness(self, x: torch.Tensor, amin: float = 1e-10, power: float ...

FILE: src/source/unmix.py
  class Unmix (line 23) | class Unmix(nn_tilde.Module):
    method __init__ (line 25) | def __init__(self,
    method forward (line 44) | def forward(self, input: torch.Tensor):
    method get_sr (line 55) | def get_sr(self) -> int:
    method set_sr (line 63) | def set_sr(self, x: int) -> int:
  function preprocess (line 67) | def preprocess(
Condensed preview — 107 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3,424K chars).
[
  {
    "path": ".github/workflows/build.yaml",
    "chars": 16717,
    "preview": "name: Build nn_tilde\non:\n  push:\n    tags:\n      - \"v*\"\n\njobs:\n  osx-arm64-build:\n    runs-on: macos-latest\n    steps:\n "
  },
  {
    "path": ".github/workflows/python-publish.yaml",
    "chars": 756,
    "preview": "name: Upload Python Package\n\non:\n  push:\n    tags:\n      - \"v*\"\n\npermissions:\n  contents: read\n\njobs:\n  deploy:\n\n    run"
  },
  {
    "path": ".gitignore",
    "chars": 105,
    "preview": "*build\nsrc/externals\nsrc/frontend/tests\nsrc/tests\n.vscode\n*libtorch\n*DS_Store*\nsrc/docs\ndist/\n*.egg-info*"
  },
  {
    "path": ".gitmodules",
    "chars": 210,
    "preview": "[submodule \"src/frontend/maxmsp/min-api\"]\n\tpath = src/frontend/maxmsp/min-api\n\turl = https://github.com/Cycling74/min-ap"
  },
  {
    "path": "LICENSE",
    "chars": 19894,
    "preview": "Creative Commons Attribution-NonCommercial 4.0 International\n\nCreative Commons Corporation (\"Creative Commons\") is not a"
  },
  {
    "path": "MANIFEST.in",
    "chars": 24,
    "preview": "include requirements.txt"
  },
  {
    "path": "README.md",
    "chars": 12907,
    "preview": "![banner](https://github.com/acids-ircam/nn_tilde/raw/master/assets/banner.png)\r\n\r\n# Demonstration video\r\n\r\n[![RAVE x nn"
  },
  {
    "path": "docs/index.md",
    "chars": 12090,
    "preview": "![banner](https://github.com/acids-ircam/nn_tilde/raw/master/assets/banner.png)\r\n\r\n# Demonstration video\r\n\r\n[![RAVE x nn"
  },
  {
    "path": "extras/01_nn_attributes.maxpat",
    "chars": 26008,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 3,\n\t\t\t\"revision\" : 1,\n\t\t\t\"archi"
  },
  {
    "path": "extras/generate_test_model.py",
    "chars": 6258,
    "preview": "from typing import List, Tuple\n\nimport torch\nimport torch.nn as nn\n\nimport nn_tilde\n\n\nclass AudioUtils(nn_tilde.Module):"
  },
  {
    "path": "install/dylib_fix.py",
    "chars": 18016,
    "preview": "import argparse\nimport fnmatch\nimport tqdm\nimport re\nimport subprocess\nimport stat\nimport sys, os\nfrom pathlib import Pa"
  },
  {
    "path": "install/macos_max_makeub.sh",
    "chars": 1769,
    "preview": "TARGET_DIR=$1\nif [ -z $TARGET_DIR ]; then\n    TARGET_DIR=\"nn_tilde\"\nfi\n\necho \"${TARGET_DIR}\"\n\nif [[ ! -d \"${TARGET_DIR}_"
  },
  {
    "path": "install/macos_pd_makeub.sh",
    "chars": 1438,
    "preview": "TARGET_DIR=$1\nif [ -z $TARGET_DIR ]; then\n    TARGET_DIR=\"nn_tilde\"\nfi\n\necho \"${TARGET_DIR}\"\n\nif [[ ! -d \"${TARGET_DIR}_"
  },
  {
    "path": "install/max-linker-flags.txt",
    "chars": 75412,
    "preview": "'-Wl,-U,_addbang' '-Wl,-U,_addfloat' '-Wl,-U,_addftx' '-Wl,-U,_addint' '-Wl,-U,_addinx' '-Wl,-U,_addmess' '-Wl,-U,_advis"
  },
  {
    "path": "install/mkl.cmake",
    "chars": 827,
    "preview": "find_package(MKL QUIET)\n\nif(NOT TARGET caffe2::mkl)\n  add_library(caffe2::mkl INTERFACE IMPORTED)\nendif()\n\ntarget_includ"
  },
  {
    "path": "install/patch_with_vst.sh",
    "chars": 3634,
    "preview": "#!/bin/bash\n\n# Default values\npd=0\nmax=0\n\nfunction print_help() {\n    echo \"Usage: $0 [--pd_path[=val]] (default: ~/Docu"
  },
  {
    "path": "package-info.json.in",
    "chars": 753,
    "preview": "{\n\t\"name\" : \"nn_tilde\",\n\t\"displayname\" : \"nn~\",\n\t\"version\" : \"${VERSION}\",\n\t\"author\" : \"ACIDS\",\n\t\"authors\" : [ \"Antoine "
  },
  {
    "path": "python_tools/__init__.py",
    "chars": 244,
    "preview": "\nimport pathlib\nimport torch\nTMP_FILE_OUTPUT = pathlib.Path(__file__).parent / \".tmpfile\"\nfrom .buffer import Buffer\nTYP"
  },
  {
    "path": "python_tools/buffer.py",
    "chars": 2130,
    "preview": "import torch\nfrom typing import  List, Dict, Optional\n\nclass Buffer():\n    value: torch.Tensor\n    min_samples: int\n    "
  },
  {
    "path": "python_tools/codegen.py",
    "chars": 926,
    "preview": "import os\nimport shutil\nimport uuid\nfrom . import TMP_FILE_OUTPUT \n\n\nclass TmpFileSession(object):\n    def __init__(self"
  },
  {
    "path": "python_tools/module.py",
    "chars": 11327,
    "preview": "import inspect\nimport logging\nfrom typing import Any,  List, Optional, Sequence, Tuple, Union\nfrom types import MethodTy"
  },
  {
    "path": "python_tools/templates/__init__.py",
    "chars": 48,
    "preview": "from .buffers import *\nfrom .attributes import *"
  },
  {
    "path": "python_tools/templates/attributes.py",
    "chars": 1753,
    "preview": "\nimport torch\nfrom .. import TYPE_HASH, Buffer\n\nTYPE_HASH_R = {v: k for k, v in TYPE_HASH.items()}\n\ndef _get_sig_type(pa"
  },
  {
    "path": "python_tools/templates/buffers.py",
    "chars": 1903,
    "preview": "\n\ndef set_buffer_attribute_template(buffer_names):\n    template = \"@torch.jit.export\\ndef set_buffer_attribute(self, buf"
  },
  {
    "path": "python_tools/test/test_attributes.maxpat",
    "chars": 6538,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "python_tools/test/test_attributes.py",
    "chars": 4394,
    "preview": "import sys, os\nimport torch\nimport pytest\nfrom pathlib import Path\n\nsys.path.append(str(Path(__file__).parent / \"..\" / \""
  },
  {
    "path": "python_tools/test/test_buffers.py",
    "chars": 2868,
    "preview": "import sys, os\nimport torch\nimport pytest\nfrom pathlib import Path\n\nsys.path.append(str(Path(__file__).parent / \"..\" / \""
  },
  {
    "path": "python_tools/test/test_list_attributes.maxpat",
    "chars": 11648,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "python_tools/test/utils.py",
    "chars": 850,
    "preview": "import os\nimport importlib\nimport time\nimport sys\nimport pytest\nfrom pathlib import Path\n\n@pytest.fixture\ndef out_dir() "
  },
  {
    "path": "requirements.txt",
    "chars": 29,
    "preview": "torch==2.5\ncached_conv>=2.5.0"
  },
  {
    "path": "requirements_darwin_x64.txt",
    "chars": 25,
    "preview": "torch1\ncached_conv>=2.5.0"
  },
  {
    "path": "scripting/README.md",
    "chars": 692,
    "preview": "# Scripting examples in nn~\n\nThese examples demonstrate how to write simple scripts to incorporate any type of deep mode"
  },
  {
    "path": "scripting/effects.py",
    "chars": 6624,
    "preview": "#\n# NN~ - Scripting library\n# effects.py : Intermediate scripting example for waveform-to-waveform case.\n#\n# We provide "
  },
  {
    "path": "scripting/features.py",
    "chars": 6322,
    "preview": "#\n# NN~ - Scripting library\n# features.py : Simple scripting example for waveform-to-float case.\n#\n# We demonstrate the "
  },
  {
    "path": "scripting/scripting.maxpat",
    "chars": 20698,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 9,\n\t\t\t\"minor\" : 0,\n\t\t\t\"revision\" : 2,\n\t\t\t\"archi"
  },
  {
    "path": "scripting/unmix.py",
    "chars": 9294,
    "preview": "#\n# NN~ - Scripting library\n# unmix.py : Advanced scripting example for integrating a deep waveform-to-waveform model.\n#"
  },
  {
    "path": "setup.py",
    "chars": 877,
    "preview": "import os\n\nimport setuptools\n\nVERSION = os.environ[\"NN_TILDE_VERSION\"]\n\nwith open(\"README.md\", \"r\") as readme:\n    readm"
  },
  {
    "path": "src/.nojekyll",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "src/CMakeLists.txt",
    "chars": 3018,
    "preview": "cmake_minimum_required(VERSION 3.10 FATAL_ERROR)\nproject(nn_tilde)\n\nset(CMAKE_POSITION_INDEPENDENT_CODE ON)\n\nconfigure_f"
  },
  {
    "path": "src/backend/CMakeLists.txt",
    "chars": 586,
    "preview": "cmake_minimum_required(VERSION 3.10 FATAL_ERROR)\nproject(backend)\n\nset(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} ${TORCH_CXX_F"
  },
  {
    "path": "src/backend/backend.cpp",
    "chars": 19955,
    "preview": "#include \"backend.h\"\n#include <exception>\n#include \"parsing_utils.h\"\n#include <algorithm>\n#include <iostream>\n#include <"
  },
  {
    "path": "src/backend/backend.h",
    "chars": 3529,
    "preview": "#pragma once\n#include <mutex>\n#include <string>\n#include <torch/script.h>\n#include \"../shared/static_buffer.h\"\n#include "
  },
  {
    "path": "src/backend/parsing_utils.cpp",
    "chars": 259,
    "preview": "#include \"parsing_utils.h\"\n\nbool to_bool(std::string str) {\n  if ((str == \"0\") || (str == \"false\")) {\n    return false;\n"
  },
  {
    "path": "src/backend/parsing_utils.h",
    "chars": 201,
    "preview": "#pragma once\n#include <algorithm>\n#include <cctype>\n#include <iomanip>\n#include <sstream>\n#include <string>\n\nbool to_boo"
  },
  {
    "path": "src/cmake/add_torch.cmake",
    "chars": 4505,
    "preview": "set(torch_dir ${CMAKE_CURRENT_BINARY_DIR}/../torch)\nset(torch_lib_name torch)\n\nmessage(\"first looking for lib in : ${tor"
  },
  {
    "path": "src/extras/nn~ Overview.maxpat",
    "chars": 378,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 9,\n\t\t\t\"minor\" : 0,\n\t\t\t\"revision\" : 0,\n\t\t\t\"archi"
  },
  {
    "path": "src/extras/patch_with_vst.sh",
    "chars": 3634,
    "preview": "#!/bin/bash\n\n# Default values\npd=0\nmax=0\n\nfunction print_help() {\n    echo \"Usage: $0 [--pd_path[=val]] (default: ~/Docu"
  },
  {
    "path": "src/frontend/maxmsp/mc.nn_tilde/CMakeLists.txt",
    "chars": 2914,
    "preview": "# Copyright 2018 The Min-DevKit Authors. All rights reserved.\n# Use of this source code is governed by the MIT License f"
  },
  {
    "path": "src/frontend/maxmsp/mc.nn_tilde/mc.nn_tilde.cpp",
    "chars": 12432,
    "preview": "#include \"../shared/nn_base.h\"\n#include \"c74_min.h\"\n\n\ntemplate <typename nn_class>\nvoid model_perform(nn_class* nn_insta"
  },
  {
    "path": "src/frontend/maxmsp/mcs.nn_tilde/CMakeLists.txt",
    "chars": 2973,
    "preview": "# Copyright 2018 The Min-DevKit Authors. All rights reserved.\n# Use of this source code is governed by the MIT License f"
  },
  {
    "path": "src/frontend/maxmsp/mcs.nn_tilde/mcs.nn_tilde.cpp",
    "chars": 16101,
    "preview": "#include \"../shared/nn_base.h\"\n#include \"c74_min.h\"\n\n\ntemplate <typename nn_class>\nvoid model_perform(nn_class* nn_insta"
  },
  {
    "path": "src/frontend/maxmsp/nn.info/CMakeLists.txt",
    "chars": 2968,
    "preview": "# Copyright 2018 The Min-DevKit Authors. All rights reserved.\n# Use of this source code is governed by the MIT License f"
  },
  {
    "path": "src/frontend/maxmsp/nn.info/nn.info.cpp",
    "chars": 14110,
    "preview": "#include \"../../../backend/backend.h\"\n#include \"../shared/max_model_download.h\"\n#include \"../shared/buffer_tools.h\"\n#inc"
  },
  {
    "path": "src/frontend/maxmsp/nn_tilde/CMakeLists.txt",
    "chars": 3198,
    "preview": "# Copyright 2018 The Min-DevKit Authors. All rights reserved.\n# Use of this source code is governed by the MIT License f"
  },
  {
    "path": "src/frontend/maxmsp/nn_tilde/nn_tilde.cpp",
    "chars": 6099,
    "preview": "#include \"../shared/nn_base.h\"\n#include \"c74_min.h\"\n\ntemplate <typename nn_class>\nvoid model_perform(nn_class* nn_instan"
  },
  {
    "path": "src/frontend/maxmsp/nn_tilde/nn_tilde_test.cpp",
    "chars": 918,
    "preview": "#include \"c74_min.h\"\n#include \"c74_min_unittest.h\"\n#include \"nn_tilde.cpp\"\n#include <iostream>\n\nSCENARIO(\"object produce"
  },
  {
    "path": "src/frontend/maxmsp/nn_tilde/nn~.maxhelp",
    "chars": 52492,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/frontend/maxmsp/shared/array_tools.h",
    "chars": 4425,
    "preview": "#include \"ext.h\"\t\t\t\t\t\t\t// standard Max include, always required\n#include \"ext_obex.h\"\t\t\t\t\t\t// required for new style Max"
  },
  {
    "path": "src/frontend/maxmsp/shared/buffer_tools.h",
    "chars": 10691,
    "preview": "#pragma once\n#include \"array_tools.h\"\n#include \"../../../backend/backend.h\"\n#include \"../../../shared/static_buffer.h\"\n#"
  },
  {
    "path": "src/frontend/maxmsp/shared/dict_utils.h",
    "chars": 4628,
    "preview": "#pragma once\n#include \"c74_min.h\"\n#include <nlohmann/json.hpp>\n#include \"../../../backend/backend.h\"\n\nnamespace nn_tools"
  },
  {
    "path": "src/frontend/maxmsp/shared/max_model_download.h",
    "chars": 3074,
    "preview": "#pragma once\n\n#include <cstdio>\n#include <filesystem>\n#include <iostream>\n#include <string>\n#include <curl/curl.h>\n#incl"
  },
  {
    "path": "src/frontend/maxmsp/shared/nn_base.h",
    "chars": 25966,
    "preview": "\n#include <chrono>\n#include <semaphore>\n#include <string>\n#include <thread>\n#include <vector>\n#include <algorithm>\n#incl"
  },
  {
    "path": "src/frontend/puredata/nn_tilde/CMakeLists.txt",
    "chars": 8621,
    "preview": "cmake_minimum_required(VERSION 3.10)\nproject(nn_tilde_pd)\n\nset(CMAKE_CXX_STANDARD 20)\nset(CMAKE_CXX_STANDARD_REQUIRED ON"
  },
  {
    "path": "src/frontend/puredata/nn_tilde/nn_tilde.cpp",
    "chars": 24596,
    "preview": "\n#include <stdio.h>\n#include <stdlib.h>\n\n#include <limits.h>\n#include <memory>\n#include <mutex>\n#include <exception>\n#in"
  },
  {
    "path": "src/frontend/puredata/nn_tilde/nn~-help.pd",
    "chars": 7742,
    "preview": "#N canvas 9 53 1467 851 12;\n#X obj 10 51 cnv 1 960 1 empty empty empty 8 12 0 13 #000000 #000000 0;\n#X obj 22 18 nn~;\n#X"
  },
  {
    "path": "src/frontend/puredata/shared/pd_buffer_manager.h",
    "chars": 3498,
    "preview": "#pragma once\n#include \"m_pd.h\"\n#include \"../../../backend/backend.h\"\n#include \"../../../shared/static_buffer.h\"\n\n#ifndef"
  },
  {
    "path": "src/frontend/puredata/shared/pd_model_download.h",
    "chars": 2139,
    "preview": "#pragma once\n#include \"m_pd.h\"\n#include \"../../../shared/model_download.h\"\n\nnamespace fs = std::filesystem;\n\ntemplate <t"
  },
  {
    "path": "src/help/mc.nn~.maxhelp",
    "chars": 53112,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/help/mcs.nn~.maxhelp",
    "chars": 48141,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/help/nn.info.maxhelp",
    "chars": 14357,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 9,\n\t\t\t\"minor\" : 0,\n\t\t\t\"revision\" : 0,\n\t\t\t\"archi"
  },
  {
    "path": "src/help/nn~.maxhelp",
    "chars": 159111,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/after_help.maxpat",
    "chars": 664,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 9,\n\t\t\t\"minor\" : 0,\n\t\t\t\"revision\" : 0,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/help_hub.maxpat",
    "chars": 790577,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 9,\n\t\t\t\"minor\" : 0,\n\t\t\t\"revision\" : 0,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/M4L.latent_remote.js",
    "chars": 6548,
    "preview": "inlets = 1;\noutlets = 1;\n\nvar MAX_SLIDERS = 64;\nvar CURRENT_SLIDERS = 1;\nvar MAX_COLUMNS = 8;\nvar SLIDER_X_MARGIN = 4; \n"
  },
  {
    "path": "src/patchers/latent_remote/M4L.latent_remote.maxhelp",
    "chars": 17701,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/M4L.latent_remote.maxpat",
    "chars": 8199,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/M4L.latent_slider.maxhelp",
    "chars": 19727,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/M4L.latent_slider.maxpat",
    "chars": 19363,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/M4L.latent_slider_component.maxpat",
    "chars": 112088,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/frand.maxpat",
    "chars": 2589,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/ierf.gendsp",
    "chars": 2620,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 0,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/latent_remote.js",
    "chars": 6546,
    "preview": "inlets = 1;\noutlets = 1;\n\nvar MAX_SLIDERS = 64;\nvar CURRENT_SLIDERS = 1;\nvar MAX_COLUMNS = 8;\nvar SLIDER_X_MARGIN = 10; "
  },
  {
    "path": "src/patchers/latent_remote/latent_remote.maxhelp",
    "chars": 17701,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/latent_remote.maxpat",
    "chars": 9022,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/latent_slider.maxhelp",
    "chars": 19727,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/latent_slider.maxpat",
    "chars": 22225,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/latent_remote/latent_slider_component.maxpat",
    "chars": 114390,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 8,\n\t\t\t\"minor\" : 6,\n\t\t\t\"revision\" : 5,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/rave_help.maxpat",
    "chars": 149869,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 9,\n\t\t\t\"minor\" : 0,\n\t\t\t\"revision\" : 0,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/ts_help.maxpat",
    "chars": 16155,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 9,\n\t\t\t\"minor\" : 0,\n\t\t\t\"revision\" : 0,\n\t\t\t\"archi"
  },
  {
    "path": "src/patchers/vschaos_help.maxpat",
    "chars": 852807,
    "preview": "{\n\t\"patcher\" : \t{\n\t\t\"fileversion\" : 1,\n\t\t\"appversion\" : \t\t{\n\t\t\t\"major\" : 9,\n\t\t\t\"minor\" : 0,\n\t\t\t\"revision\" : 0,\n\t\t\t\"archi"
  },
  {
    "path": "src/shared/circular_buffer.h",
    "chars": 2182,
    "preview": "#pragma once\n#include <memory>\n\ntemplate <class in_type, class out_type> class circular_buffer {\npublic:\n  circular_buff"
  },
  {
    "path": "src/shared/model_download.h",
    "chars": 13747,
    "preview": "#pragma once\n\n#include <cstdio>\n#include <filesystem>\n#include <iostream>\n#include <string>\n#include <curl/curl.h>\n#incl"
  },
  {
    "path": "src/shared/static_buffer.h",
    "chars": 1800,
    "preview": "#pragma once\n#include <vector>\n#include <torch/torch.h>\n\n\ntemplate <typename data_type> \nclass StaticBuffer {\n\npublic:\n "
  },
  {
    "path": "src/source/attributes.py",
    "chars": 1923,
    "preview": "try: \n    import nn_tilde\nexcept ImportError: \n    import os, sys\n    sys.path.append(os.path.join(os.path.dirname(__fil"
  },
  {
    "path": "src/source/buffers.py",
    "chars": 2247,
    "preview": "try: \n    import nn_tilde\nexcept ImportError: \n    import os, sys\n    sys.path.append(os.path.join(os.path.dirname(__fil"
  },
  {
    "path": "src/source/effects.py",
    "chars": 6497,
    "preview": "try: \n    import nn_tilde\nexcept ImportError: \n    import os, sys\n    sys.path.append(os.path.join(os.path.dirname(__fil"
  },
  {
    "path": "src/source/features.py",
    "chars": 6039,
    "preview": "#\n# NN~ - Scripting library\n# features.py : Simple scripting example for waveform-to-float case.\n#\n# We demonstrate the "
  },
  {
    "path": "src/source/unmix.py",
    "chars": 9294,
    "preview": "#\n# NN~ - Scripting library\n# unmix.py : Advanced scripting example for integrating a deep waveform-to-waveform model.\n#"
  }
]

// ... and 9 more files (download for full content)

About this extraction

This page contains the full source code of the acids-ircam/nn_tilde GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 107 files (2.9 MB), approximately 764.5k tokens, and a symbol index with 320 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!