Giter Club home page Giter Club logo

genish.js's People

Contributors

abramhindle avatar charlieroberts avatar charlieroberts-rit avatar danigb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

genish.js's Issues

error when array length = 1 for ugen

When passing the ugen array to createCallback, if the array.length = 1 it throws an error. My way around this so far is to pass array[0] instead, for now.

Documention broken

Hi Charlie,

Hope you are well. I'm not srue why I have never tried genish, but I just started learning gen~ so it came up. It seems really great! Anyway, the documentation seems to be broken. When viewing the page these errors pop up in the console.

Mixed Content: The page at 'https://charlie-roberts.com/genish/docs/index.html' was loaded over HTTPS, but requested an insecure script 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'. This request has been blocked; the content must be served over HTTPS.
flatdoc.js:521 Uncaught ReferenceError: jQuery is not defined
    at flatdoc.js:521
(anonymous) @ flatdoc.js:521
script.js:74 Uncaught ReferenceError: jQuery is not defined
    at script.js:74
(anonymous) @ script.js:74
index.html:30 Uncaught ReferenceError: Flatdoc is not defined
    at index.html:30
(anonymous) @ index.html:30
index.html:50 Mixed Content: The page at 'https://charlie-roberts.com/genish/docs/index.html' was loaded over HTTPS, but requested an insecure frame 'http://ghbtns.com/github-btn.html?user=charlieroberts&repo=genish.js&type=watch&count=true'. This request has been blocked; the content must be served over HTTPS.

Looks like github.io started caring about http cdns with https. I will compile the docs locally, just thought you might like to know.

AudioWorklet

Hi

Have you tried, or are planning to try, using genish with AudioWorklets? I'm using genish for a project and have it working well inside a ScriptProcessorNode. However, I get audio glitching for obvious reasons if I do any graphics stuff on the main thread as well.

I've tried myself, but quickly got stuck with trying to setup genish within the AudioWorklet scope. I get errors if I try loading gen.lib.js into the AudioWorkletGlobalScope using audioContext.audioWorklet.addModule. I suspect it's to do with the way you have genish packaged, but I'm not that familiar with such techniques, and it's hard to unpick exactly what's going on in that file!

Any help or pointers would be much appreciated, as it's a great project and I'd love to keep using it.

Play multiple graphs at the same time?

Hi! Genish looks really great โ€” I started playing with it, and it looks almost exactly like what I want. However, I can't figure out how to play multiple different graphs at the same time.

Is this something that's supported?

Thanks!

Improve tests

Currently the test are failing, although I think it's easy to fix it. However looking at the tests is painful since they are all inside the same file. My proposal:

  • Separate benchmarks from tests. Create a benchmarks folder.
  • Split the gen.tests.js by module.
  • Fix the failing tests
  • Add missing tests

Here's my output:

  50 passing (96ms)
  5 failing

  1) monops should generate a value of PI/2 for asin( 1 ):

      AssertionError: 1.5707963705062866 == 1.5707963267948966
      + expected - actual

      -1.5707963705062866
      +1.5707963267948966
      
      at Context.it (tests/gen.tests.js:202:12)

  2) monops should generate a value of PI/2 for acos(0):

      AssertionError: 1.5707963705062866 == 1.5707963267948966
      + expected - actual

      -1.5707963705062866
      +1.5707963267948966
      
      at Context.it (tests/gen.tests.js:211:12)

  3) monops should generate a value of PI/4 for atan( 1 ):

      AssertionError: 0.7853981852531433 == 0.7853981633974483
      + expected - actual

      -0.7853981852531433
      +0.7853981633974483
      
      at Context.it (tests/gen.tests.js:238:12)

  4) rate should cause a phasor with an frequency of 4410 to ramp to -.5 after five executions instead of 0:
     AssertionError: '0.50' == -0.5
      at Context.it (tests/gen.tests.js:600:12)

  5) data + peek should return the value of 49 when indexing uisng phase w/ peek:

      AssertionError: 0 == 49
      + expected - actual

      -0
      +49
      
      at Context.it (tests/gen.tests.js:629:12)


npm ERR! Test failed.  See above for more details.

improve docs

The following ugens need documentation (they are categorized below).

delta, rate -> filter
env, attack, decay -> envelope
mix, sah -> routing
mstosamps, mtof, memo, pan -> utilities

"utilities" needs to be a new category added to the docs.

Compiling to WebAssembly?

First of all, thank you for writing genish. It's one of the most exciting projects in the space.

Do you have any plans to optionally generate WebAssembly code?

npm: Could not find a declaration file for module 'genish.js'

I've installed genish.js using node package manager. When importing genish into my script, I receive:

Could not find a declaration file for module 'genish.js'. 
'D:/github/mischmasch/node_modules/genish.js/js/index.js' implicitly has an 'any' type. 
Try `npm i --save-dev @types/genish.js` if it exists or add a new declaration (.d.ts) file 
containing `declare module 'genish.js';

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.