GithubHelp home page GithubHelp logo

madskjeldgaard / faust.quark Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 0.0 26 KB

Create SuperCollider packages with automatically compiled Faust plugins

License: GNU General Public License v3.0

SuperCollider 100.00%
faust faust-dsp supercollider supercollider-quark

faust.quark's Introduction

Faust.quark

This SuperCollider package makes it possible to create SuperCollider packages (Quarks) containing plugins written in Faust code. With this, you can distribute plugins written in Faust and make it easy for others to install, compile or uninstall them. It also contains some simple interfaces for the faust and faust2sc.py commands used behind the scenes.

Prerequisites

This package requires faust version 2.40.0 or higher to work.

How to make a Faust quark with this package

If you've never made a SuperCollider package before, read this guide and/or try generating one using this cookiecutter recipe.

If you want to see a finished package that uses this method, see this example Quark.

Step 0: Add faust files to your project

This package assumes that you have .dsp faust files in your project in a folder at the root of your project called faust (if you want to change this, see the help files). Every .dsp file in this folder will be part of your installation.

Step 1: Add dependency

In your Quark folder, open up the .quark file and add this package as a dependency eg:

(
  name: "mycoolfaustplugins",
  summary: "Only the world's coolest plugins",
  version: "0.001",
  schelp: "MyCoolFaust.schelp",
  dependencies: ["https://github.com/madskjeldgaard/faust.quark"], // <----- Add Faust.quark here
  license: "GNU GPL v3.0",
  copyright: "yourname",
  ext_dependency: nil,
  url: "https://github.com/yourname/mycoolfaustplugins"
)

With this done, when people install your quark it will automatically download this package along with it.

Step 2: Create a subclass

In your Quark, create a simple class that inherits from the AbstractFaustPackage class defined in this package:

MyCoolFaust : AbstractFaustPackage {}

From now on, your users can install your plugins like this:

MyCoolFaust.install();

Or uninstall like this:

MyCoolFaust.uninstall();

Step 3 (optional): Automatically compile and install

If you want to automatically compile and install the plugins, you can do the following in your subclass:

MyCoolFaust : AbstractFaustPackage{
    *initClass{
        this.autoCompileAtStartup()
    }
}

With this, after the first class library compilation, Faust.quark will check if the plugins are installed and if not it will install them automatically.

That's it. See the help files for more information.

Installation

Open up SuperCollider and evaluate the following line of code: Quarks.install("https://github.com/madskjeldgaard/faust.quark")

faust.quark's People

Contributors

madskjeldgaard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.