fluidnode
v0.3.1
Published
Wrapper for the FluidSynth software synthesizer
Downloads
9
Maintainers
Readme
FluidNode
FluidNode is a wrapper for the FluidSynth software synthesizer.
Installation
npm install fluidnode
Futhermore, the fluidsynth
binary must be installed on your system.
You can find installation instructions for your system
here.
Usage
Use FluidNode in your files like this:
import "fs" from "fs/promises"
import { renderFile } from "fluidnode"
const wavBuffer = await renderFile(
filePath, // Path to MIDI file to get rendered
options, // Set gain and alternative soundfont path (both optional)
)
await fs.writeFile("out.wav", wavBuffer, { encoding: "binary" })
Default soundfont is GeneralUser.
Check out the [test/main.ts] file for a complete example.
Development
Check out the makefile for available commands.