{"id":13822664,"url":"https://github.com/RustAudio/dsp-chain","last_synced_at":"2025-05-16T17:31:29.027Z","repository":{"id":43351447,"uuid":"21034451","full_name":"RustAudio/dsp-chain","owner":"RustAudio","description":"A library for chaining together multiple audio dsp processors/generators, written in Rust!","archived":false,"fork":false,"pushed_at":"2022-02-19T18:02:47.000Z","size":1820,"stargazers_count":302,"open_issues_count":12,"forks_count":19,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-05-02T06:03:39.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RustAudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-20T10:40:24.000Z","updated_at":"2025-04-05T09:05:05.000Z","dependencies_parsed_at":"2022-08-12T10:40:38.544Z","dependency_job_id":null,"html_url":"https://github.com/RustAudio/dsp-chain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustAudio%2Fdsp-chain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustAudio%2Fdsp-chain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustAudio%2Fdsp-chain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustAudio%2Fdsp-chain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RustAudio","download_url":"https://codeload.github.com/RustAudio/dsp-chain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576485,"owners_count":22094378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T08:02:11.922Z","updated_at":"2025-05-16T17:31:28.783Z","avatar_url":"https://github.com/RustAudio.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# dsp-chain [![Build Status](https://travis-ci.org/RustAudio/dsp-chain.svg?branch=master)](https://travis-ci.org/RustAudio/dsp-chain) [![Crates.io](https://img.shields.io/crates/v/dsp-chain.svg)](https://crates.io/crates/dsp-chain) [![Crates.io](https://img.shields.io/crates/l/dsp-chain.svg)](https://github.com/RustAudio/dsp-chain/blob/master/LICENSE)\n\n\nA library for chaining together multiple audio dsp processors/generators, written in Rust!\n\nUse cases for dsp-chain include:\n- Designing effects.\n- Creating an audio mixer.\n- Making a sampler.\n- Writing a dsp backend for a DAW.\n- Any kind of modular audio synthesis/processing.\n\n\nDocumenation\n------------\n\n[API documentation here!](http://RustAudio.github.io/dsp-chain/dsp)\n\n\nUsage\n-----\n\nHere's what it looks like:\n\n```Rust\n// Construct our dsp graph.\nlet mut graph = Graph::new();\n\n// Construct our fancy Synth and add it to the graph!\nlet synth = graph.add_node(DspNode::Synth);\n\n// Add a few oscillators as inputs to the synth.\ngraph.add_input(DspNode::Oscillator(0.0, A5_HZ, 0.2), synth);\ngraph.add_input(DspNode::Oscillator(0.0, D5_HZ, 0.1), synth);\ngraph.add_input(DspNode::Oscillator(0.0, F5_HZ, 0.15), synth);\n\n// Set the synth as the master node for the graph.\n// This can be inferred by the graph so calling this is optional, but it's nice to be explicit.\ngraph.set_master(Some(synth));\n\n// Request audio from our Graph.\ngraph.audio_requested(\u0026mut buffer, settings);\n```\n\nHere are [two working examples](https://github.com/PistonDevelopers/dsp-chain/blob/master/examples) of using dsp-chain to create a very basic synth and an oscillating volume.\n\nAdd dsp-chain to your Cargo.toml dependencies like so:\n\n```toml\n[dependencies]\ndsp-chain = \"*\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRustAudio%2Fdsp-chain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRustAudio%2Fdsp-chain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRustAudio%2Fdsp-chain/lists"}