A template to create Rust-based Pure Data externals

Overview

Generate a Rust-based external for Pure Data

This is a cargo generate template to create a Pure Data external written entirely in Rust.

It uses puredata-rust.

Usage:

You need to have cargo-generate and cargo-make installed to run these commands.

Install them using cargo before procedeeding:

cargo install cargo-generate
cargo install cargo-make

Generating a new project

cargo generate madskjeldgaard/puredata-rust-template
cd <project-name>

Building

Please note: All build commands use the debug profile by default. For DSP, this is EXTREMELY slow. Therefore, make sure to use the release profile correctly when you need to have an optimized version of your external.

For debug builds:

cargo make build
cargo make --profile release build

Running the external in PureData

At the root of the project is a .pd file you can open to test the external.

Run it using cargo make:

cargo make run

If you want to run the release version:

cargo make --profile release run

Install the external

If you have plugdata installed (on MacOS), this will install the external to the plugdata externals folder, otherwise the Pd-externals folder in your home directory. On Linux it will simply copy it to ~/pd-externals

cargo make --profile release install

Making a Deken package

The make file also includes a task to create a Deken package to be used in the Pure Data externals database.

cargo make --profile release package

Upload to Deken

cargo make --profile release upload
You might also like...
๐Ÿ–จ Template for Rust applications & smart contracts @okp4.

Rust Template Template for Rust projects @okp4. Purpose & Philosophy This repository holds the template for building Rust projects with a consistent s

Minimal compile-time Rust template engine

boilerplate boilerplate is a minimal compile-time Rust text template engine. Quick Start Add boilerplate to your project's Cargo.toml: [dependencies]

A template for your next Rust project.

Opinionated Rust Template A template for your next Rust project. To start coding run: cargo generate tomkarw/opinionated-rust-template Only requires j

Cloup is a template manager that provides the files you desire when you need them, written in Rust.
Cloup is a template manager that provides the files you desire when you need them, written in Rust.

cloup cloup is a template manager that delivers the files you desire when you need them, written in rust you no longer need to locate your previous pr

A template for command-line Rust programs

This is a template for command-line Rust programs. Clone and run the rename script with both a lowercase and UpperCase name. In the dev profile, depen

Rust-Rocket framework template Demo

rocketapp Rust-Rocket framework template Demo dependencies are defined in Cargo.toml Clone as: git clone https://github.com/srikantgdev/rocketapp [op

Rust Cannon Template ๐Ÿฆ€ ๐Ÿ’ฃ ๐Ÿ’ฅ

A build system and a minimal Rust program for building MIPS binaries that are executable in the context of [Optimism Cannon]

A template for writing CMSIS-Pack flash algorithms in Rust

Flash Algorithm Template This is a flash algorithm template for writing CMSIS-Pack flash algorithms in Rust. It can be used to generate new flash algo

A template for developing Rust projects, with sensible defaults

Rust Template A template for developing Rust projects, with sensible defaults. Getting Started Click the Use this template button at the top of the pa

Comments
  • Add deken and pure-data-rust as git submodules in post-hook

    Add deken and pure-data-rust as git submodules in post-hook

    Hooks are described here: https://cargo-generate.github.io/cargo-generate/templates/scripting.html

    After running cargo generate, the template should initalise git in the new project, add both deken and pure-data-rust as submodules.

    We should then remove those two submodules from the main template here.

    opened by madskjeldgaard 0
  • Add options to generate other kinds of plugins

    Add options to generate other kinds of plugins

    It would be nice if the template gave the user the option of creating one of a few different kinds of plugins:

    • Audio (tilde)
    • Control rate

    See this for examples: https://github.com/x37v/puredata-rust/tree/develop/macros/examples

    opened by madskjeldgaard 0
Owner
Mads Kjeldgaard
Electronic music composer && software developer. Formerly @notam02 and @torsoelectronics.
Mads Kjeldgaard
A guide for Mozilla's developers and data scientists to analyze and interpret the data gathered by our data collection systems.

Mozilla Data Documentation This documentation was written to help Mozillians analyze and interpret data collected by our products, such as Firefox and

Mozilla 75 Dec 1, 2022
Zei is a library that provide tools to create and verify public transaction with confidential data.

#Zei: Findora's Cryptographic Library Zei is a library that provide tools to create and verify public transaction with confidential data. Support: Bas

Findora Foundation 0 Oct 23, 2022
Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.

Themis provides strong, usable cryptography for busy people General purpose cryptographic library for storage and messaging for iOS (Swift, Obj-C), An

Cossack Labs 1.6k Dec 30, 2022
Demonstrates Solana data account versioning used in supporting the Solana Cookbook article: Account Data Versioning

versioning-solana This repo demonstrates ONE rudimentary way to upgrade/migrate account data changes with solana program changes. What is data version

Frank V. Castellucci 6 Sep 30, 2022
reth-indexer reads directly from the reth db and indexes the data into a postgres database all decoded with a simple config file and no extra setup alongside exposing a API ready to query the data.

reth-indexer reth-indexer reads directly from the reth db and indexes the data into a postgres database all decoded with a simple config file and no e

Josh Stevens 306 Jul 12, 2023
Create your personal token with rust smart contracts

Solana Rust Token ?? This application written Rust using Anchor โš“

Ritesh 6 Nov 22, 2022
Simple template for building smart contract(Rust) and RPC Client(web3.js) on Solana (WIP) โ›๐Ÿ‘ท๐Ÿšงโš ๏ธ

Solana BPF Boilerplate Simple template for building smart contract(Rust) and RPC Client(web3.js) on Solana This boilerplate provides the following. Si

ono 6 Jan 30, 2022
A blazing fast, type-safe template engine for Rust.

markup.rs A blazing fast, type-safe template engine for Rust. markup.rs is a template engine for Rust powered by procedural macros which parses the te

Utkarsh Kukreti 209 Dec 24, 2022
This is a template to build secret contracts in Rust to run in Secret Network

Secret Contracts Starter Pack This is a template to build secret contracts in Rust to run in Secret Network. To understand the framework better, pleas

Ethan Gallucci 1 Jan 8, 2022
A template to build smart contracts in Rust to run inside a Cosmos SDK module on all chains that enable it.

CosmWasm Starter Pack This is a template to build smart contracts in Rust to run inside a Cosmos SDK module on all chains that enable it. To understan

null 1 Mar 7, 2022