-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Community] [Audio Context] Procedural audio generation #788
Conversation
Very cool extension! I have some suggessions:
const MyClass = /** @class */ (function () {
function MyClass() {
/**
* @type {number[]}
*/
this.myAttribute = [];
};
/**
* @param {number} myParameter A parameter.
*/
MyClass.prototype.myMethod = function (myParameter) {
};
};
gdjs.__myExtension = gdjs.__myExtension || {};
gdjs.__myExtension.MyClass = MyClass; Otherwise, there are some naming conventions for extensions:
|
Hey, thanks. Yeah, I'll submit the example and make the other changes. |
I've been playing around with this VERY COOL extension!
Thank you again, and great work. :) |
Have you considered using a framework to provide more features? (GDevelop extensions can use NPM modules) Tone.js = https://tonejs.github.io/ Pizzicato = https://alemangui.github.io/pizzicato/ |
Hi Tristan @tristanbob,
By the way, the builtin "Play sound/music on channel x" doesn't work for iPhones either. Tested on a Cordova built. Have to use "Play sound/music" without the channel option. Both issues might be related but not 100% sure.
|
Are you working on a new version? |
@D8H Hey. Sorry, a lot going on at the moment so I cannot say I have time for refactoring this. Also, I was looking at the Tone.js library as Tristan suggested, got carried away and already working on something with that but it will take some time until I can turn it into an extension. That library is great and built on top of audio context. But if you say this is mergeable as is please go ahead and I'll create the tone.js extension with the suggestions and the formatting you mentioned here. Thanks. |
This extension uses Audio Context API to bring procedural audio generation to GDevelop. This is a JavaScript-heavy extension.
So far you can create:
Basic help and an example with a full source are available here (I'll probably add more info to this page):
https://aliustaoglu.itch.io/audiocontext-gdevelop-extension
https://liluo.io/instant-builds/45d1f15c-1043-495a-b86a-0b90d7fac49b