charlieroberts / genish.js Goto Github PK
View Code? Open in Web Editor NEWa js library to compile optimized audio callbacks inspired by gen~
Home Page: http://www.charlie-roberts.com/genish
License: MIT License
a js library to compile optimized audio callbacks inspired by gen~
Home Page: http://www.charlie-roberts.com/genish
License: MIT License
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.
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.
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.
I'm making an app which is going to be making a lot of frequent updates to the genish audio graph. I built a simple page to experiment with this and I'm getting clicks whenever I swap in a different string to be evaluated:
https://codepen.io/michaelpalumbo/pen/yLVVKjm?editors=1011
Is there a better way to insert a new genish graph?
See my pull request.
Thank you !
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!
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:
benchmarks
folder.gen.tests.js
by module.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.
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.
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?
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';
Is there a list of all genish ops, ideally as a JSON? if not, I'd be happy to contribute that as I also need it for my project mischmasch. at the moment i've got such a collection of gen~ operators, here
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.