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

hydra-synth

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydra-synth - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

.npmignore

31

index.js

@@ -8,3 +8,3 @@ const Output = require('./src/output.js')

const Audio = require('./src/audio.js')
//const nanoKONTROL = require('korg-nano-kontrol');
const VidRecorder = require('./src/video-recorder.js')

@@ -23,2 +23,3 @@ // to do: add ability to pass in certain uniforms and transforms

detectAudio = true,
enableStreamCapture = true,
canvas

@@ -35,2 +36,5 @@ } = {}) {

// if stream capture is enabled, this object contains the capture stream
this.captureStream = null
this._initCanvas(canvas)

@@ -42,21 +46,8 @@ this._initRegl()

// nanoKONTROL.connect()
// .then(function(device){
// console.log('connected!' + device.name);
// window.midi = device
//
// window.midi.on1 = function(name, callback) {
// window.midi.removeAllListeners(name)
// window.midi.on(name, callback)
// }
// // catch all slider/knob/button events
// // device.on('slider:*', function(value){
// // console.log(this.event+' => '+value);
// // });
// // do something
// })
// .catch(function(err){
// console.log('no midi device found')
// });
if (enableStreamCapture) {
this.captureStream = this.canvas.captureStream(25)
// to do: enable capture stream of specific sources and outputs
window.vidRecorder = new VidRecorder(this.captureStream)
}

@@ -69,3 +60,3 @@ if(detectAudio) this._initAudio()

// window.bpm = this.bpm
window.bpm = this._setBpm.bind(this)
window.bpm = this._setBpm.bind(this)
// }

@@ -72,0 +63,0 @@ if(autoLoop) loop(this.tick.bind(this)).start()

{
"name": "hydra-synth",
"version": "1.0.12",
"version": "1.0.13",
"description": "base synth for hydra-editor",

@@ -30,2 +30,3 @@ "main": "index.js",

"dependencies": {
"budo": "^11.3.2",
"enumerate-devices": "^1.1.1",

@@ -32,0 +33,0 @@ "getusermedia": "^2.0.1",

@@ -26,2 +26,8 @@ /* globals tex */

// hydra code: osc().rotate().color().repeat().out()
// pseudo shader code: gl_FragColor = color(osc(rotate(repeat())))
// hydra code: osc().rotate().add(s0).repeat().out()
// gl_FragColor = osc(rotate(repeat())) + tex(repeat())
// Parses javascript args to use in glsl

@@ -28,0 +34,0 @@ function generateGlsl (inputs) {

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