1.0.3 • Published 8 years ago

node-mrswatson v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

node-mrswatson

Node.js wrapper for MrsWatson.

Installation

$ [sudo] npm install node-mrswatson

Usage

Modified from example.js file.

var mrswatson = require("node-mrswatson");

// Cutsom directory for VST plugins (optional)
mrswatson.pluginRoot = "K:\\Program Files (x86)\\VstPlugins";

// Use WINE for Windows .dll VSTs (optional)
mrswatson.wine = false;

// List plugins
mrswatson.listPlugins(function(err, plugins) {
	if (err) {
		return console.error("ERROR: \n", err);
	}

	console.log(plugins);
});

//////////////////////////////////////////////////////////////////////
// EXAMPLE A: Process audio with a single VST effect with parameters
//////////////////////////////////////////////////////////////////////
var obj = {
	inputFile: "C:\\test.wav",
	outputFile: "C:\\example_a.wav",
	plugins: ["dblue Crusher"],
	parameters: ["0,0.2", "5,0.99"]
};

mrswatson.processAudio(obj, function(err, result) {
	if (err) {
		return console.error("ERROR: \n", err);
	}

	// Print the result log
	console.log(result);
});

//////////////////////////////////////////////////////////////////////
// EXAMPLE B: Process audio with chain of VST effects (with presets)
//////////////////////////////////////////////////////////////////////
var obj2 = {
	inputFile: "C:\\test.wav",
	outputFile: "C:\\example_b.wav",
	plugins: [
		// NOTE: these two notations are equivalent
		"dblue Crusher,C:\\dblue_preset.fxp",
		["CamelCrusher", "C:\\camel_preset.fxp"],
	]
};

mrswatson.processAudio(obj2, function(err, result) {
	if (err) {
		return console.error("ERROR: \n", err);
	}

	// Print the result log
	console.log(result);
});

Credits

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago