New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

boscillate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boscillate

boscillate ==========

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

boscillate

Sound wave graph for baudio in your terminal

example1 example2 example3 example4

usage

npm install boscillate

var baudio = require('baudio');
var oscillate = require('boscillate');

var n = 0;
var b = baudio(function (t, i) {
    return Math.sin(t * 400 * Math.PI * 2) + Math.sin(t * 500) * (t % 2 > 1);
});


b = oscillate(b);
b.play();

This will pretty much take over your terminal

options

b = oscillate(b, {
    framesPerSecond: 20, // how often does this try to refresh the screen
                         // higher -> faster & more intensive
                         // find a value that works for your terminal size
    
    windowSize: 1000     // window size: 
                         // the graphs are composed of a sliding window of 
                         // time series values.
                         // e.g. if we have values 1, 2, 3, 4, 5, 6, 7
                         //      then with a window of size two, the graph
                         //      would display the following two points at
                         //      each refresh:
                         //      [1, 2], 3, 4, 5, 6, 7
                         //      1, [2, 3], 4, 5, 6, 7
                         //      1, 2, [3, 4], 5, 6, 7
                         //      1, [2, 3, [4, 5], 6, 7
                         //      1, 2, 3, 4, [5, 6], 7
                         //      1, 2, 3, 4, 5, [6, 7]
                         //      etc
                         //
                         // so a bigger window size means you can see further into
                         // the past on the audio wave

})

license

MIT

Keywords

FAQs

Package last updated on 26 Jun 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc