shaden

command module
v0.0.0-...-a19c61f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 17 Imported by: 0

README

Shaden

Build Status GoDoc Go Report Card

Shaden is a modular audio synthesizer. Patches for the synthesizer are written in a Lisp dialect. A REPL and HTTP interface are provided for interacting with the synthesizer in real-time. I started this project as a way of learning more about digital signal processing and music theory. Consider this an art project.

The name "shaden" comes from the Cycle of Galand book series by Edward W. Robertson.

Highlights

Dependencies

On macOS you can install these dependencies with: brew install go portaudio portmidi

Getting Started

Install

$ go get -u github.com/brettbuddin/shaden

CLI Usage

REPL
$ shaden -repl
> (define gen (unit/gen))
> (-> gen (table :freq (hz 300)))
> (emit (<- gen :sine))
Load File
$ shaden examples/frequency-modulation.lisp
HTTP
$ shaden examples/krell.lisp
$ curl -X POST http://127.0.0.1:5000/eval -d "(=> rise (table :x (ms 100))) ; ..."

This is my preferred way of interacting with the synthesizer. I've written a small Vim plugin that can send over snippets of Lisp code to the program for evaluation. You can find that plugin here.

The HTTP interface is limited to Lisp evaluation at the moment, but I have hopes of providing an API for direct graph manipulation via HTTP.

Lisp

For a more information about the Lisp dialect bundled with Shaden, check out the wiki.

Examples

The best way to get to know the way patching works in Shaden is to look at the examples directory.

I gave a lightning talk at GopherCon 2018 about Shaden:

Shaden was used to create the intro music for the GothamGo 2017 and GothamGo 2018 conference videos. I frequently post patches I've created on Instagram.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package dsp provides common digital signal processing operations.
Package dsp provides common digital signal processing operations.
Package engine provides a low-level audio interface.
Package engine provides a low-level audio interface.
portaudio
Package portaudio provides a portaudio backend for the engine.
Package portaudio provides a portaudio backend for the engine.
Package graph provides a directed graph implementation.
Package graph provides a directed graph implementation.
Package lisp provides a lisp interpreter
Package lisp provides a lisp interpreter
builtin
Package builtin provides built-in functionality for the lisp interpreter.
Package builtin provides built-in functionality for the lisp interpreter.
Package midi provides midi units.
Package midi provides midi units.
Package runtime provides Shaden-specific lisp built-ins and REPL.
Package runtime provides Shaden-specific lisp built-ins and REPL.
Package unit provides built-in units for synthesis.
Package unit provides built-in units for synthesis.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL