New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-mrswatson

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mrswatson

Node.js wrapper for MrsWatson

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

Keywords

mrswatson

FAQs

Package last updated on 29 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts