Git Product home page Git Product logo

synthdefaults's Introduction

SynthDefaults

These synths were found around the web. You may recognize some of them!

An attempt has been made to include only "musically useful" synthdefs. Efforts were also made to normalize the audio levels of a synth using default params.

So requesting any synth with amp 0.1 should return a signal whose overall amplitude/volume are equal.

Usage

First, clone this repository to your supercolider class path. You can get your classpath by evaluating Platform.userExtensionDir or Platform.classLibraryDir. Clone this repo there, restart supercollider, and it should be auto loaded.

SynthDefaults.loadSynths()

To make these definitions available to your audio server, call SynthDefaults.loadSynths. It returns a Dictionary of (groupName: nSynths).

SynthDefaults.opts()

The synthdefs are grouped into some general musical categories, like "organ" or "piano" or "flute". To get the options Dictionary after it is loaded, use SynthDefaults.opts.

SynthDefaults.choose(name: keyword)

To pick one of these at random, use SynthDefaults.choose. It will return the name of the synthdef. Example usage with a Pbind:

Pbind(\instrument, Pfunc { SynthDefaults.choose(\flute) }, \note, Pn(55) ).play()

The result should be a random flute per note.

SynthDefaults.get(name: keyword, n?: integer)

To select a synth more deterministically, use this getter. The "n" value will be modulus the number of available synths. So you will always get the same synth per name/n combo. Unless you add more synths! Which would be cool (see below).

SynthDefaults.any()

Gives you any registered synthdef name.

About this

no guarantees, FOSS, all that schnazz

synths are super cool.

To be honest I haven't tested this outside of my own SuperCollider environment. So if there is some quark or class missing in this code that isn't in your code, please open an issue or pull request to raise awareness.

Also would be super cool if you wanted to open a pull request to like make the synths better.

synthdefaults's People

Contributors

ckmahoney avatar

Watchers

 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.