npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dsp-interface

v0.2.6

Published

generic, socketed HTML5 interface for digital signal processing with sliders and exponents

Downloads

7

Readme

Generic DSP Interface

Require this generic HTML5 / Touch compatible web socket interface. It returns two arrays, which valaues you can change in your browser.

POSTED: This is a slow, string transporting, pseudo midi signal. The GUI is a clumsy, DOM based implementation with non-continunous values. And I traded multi-touch + non working range sliders for single touch capable sliders that actually work! So it works on the ipad.

Future version will sweet tho: binary transprt, real midi, canvas face, continuous value ranges.

The interface has 10 range sliders, and 8 corresponding exponents buttons.

var gui = require('dsp-interface');

gui.start(5001); // optional port, defaults to 8012

gui.line // a length 10 array
gui.exp // a length 10 array ([0] and [1] do are empty, do not use);

line3 = gui.line[2]
line3exp = gui.exp[2]

function(time){
  return Math.sin(time * Math.PI * (line1 * Math.pow(10, line3exp)))
}

You can set your initial values

var mui = require('dsp-interface');

var values = [1,1,-10,1,1,1,1,1,1,1]; // there are 10 range sliders

var exponents = [0,0,1,1,2,2,3,3,3,3]; // only 8 lines have exponent switches. The first two indecies will always be zero!!!!!!

mui.start(5001, values, exponents)

the interface will start at those values, and will remember previous settings if you refresh that tab!

line[0] and line[1] return values 0,...,11 inclusive to correspond with either cranking it past ten, or for 12 octaves for each of the 12 note classes in the western scale. Why 12 octaves? You can't hear 7 hertz, but you can feel it!

line[2] returns range [-12, 12] inclusive

lines 3-9 return values 0-9.9 at intervals of 0.1.

ui.exp channels all return values 0-3, meant to be used to define the exponent for the their corresponding channels values. exp[0] and exp[1] are always zero.

npm install dsp-interface

TODO:

  • Add incr / decr buttons to range sliders
  • Add on/off punch buttons
  • Add placeholders for values you want to come back to