-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
initial replacements of module system #489
Conversation
i have added p5.js file for the sole purpose of testing the APIs ! |
@therewasaguy @kyle1james |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two conflicting files, which should be a quick fix. The PR highlights those for you. I'm having trouble verifying a PR due to lack of tests in place. So, I'd wait for Jason to give that ole 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@endurance21 can you highlight any changes you've made to the src files, aside from changing import/exports? It's hard to know what the diffs are since the indentation of every file changes now that we're not wrapping everything in a define
function.
-
The compiled
lib/p5.sound.js
seems to have shrunk significantly. Have you rebuilt it with the latest changes? In the future, it would be easier to review the changes to src/ files separately from the compiled library. -
The Tone API has changed, and instead of a TimelineSignal, we're now importing the TransportTimelineSignal. This signal is very similar to the Web Audio API's AudioParam https://developer.mozilla.org/en-US/docs/Web/API/AudioParam, but it enables us to
getValueAtTime
which is not part of the web audio API spec. It is used in p5.Envelope and p5.PolySynth. And, in order to use it, we need to "start" the Tone Transport.. We can do this with
import Transport from 'Tone/core/Transport';
Transport.start();
bfb8c3b
to
5d71fae
Compare
5d71fae
to
69472c9
Compare
@therewasaguy i have made the requested changes and resolved the merge conflict too ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like oscillator
has not been updated, and it's throwing some errors when testing locally.
also, be sure to either update the compiled library, or exclude it from the PR/commits
added the oscillator updates ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two conflicting files, which should be a quick fix. The PR highlights those for you. I'm having trouble verifying a PR due to lack of tests in place. So, I'd wait for Jason to give that ole
done !
@therewasaguy i have not pushed the latest build file so , while you are running tests locally using my latest commit , make sure to build it once ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good!
I would love to see it go a step further to ensure consistency with how we export and import modules, as mentioned here, but that doesn’t need to happen as part of this PR.
Just remove a comment, rebuild (or remove the builds), and we can merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @endurance21 sorry I was unclear about this in my previous comment, but currently, there's a commit that adds “deletes” for the /lib
files to the commit history. I don’t think we want that, but rather to remove the modifications to those files from the commit history. Something like this...
Or, it's probably easier just to include the compiled lib
in this PR, if you want to add it back :)
@therewasaguy also there was p5. Js file added in that folder only for testing purpose, So finally i think i have to do is 1.remove the p5. Js file from lib |
yes, that sounds good @endurance21 |
@therewasaguy i have added build files , take a look at that ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work, @endurance21. Let's ✅ this massive PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
@endurance21 feel free to "squash-and-merge" |
This Pr is under the purview of GSOC'20 project
require and module.exports of nodejs
has been changed toes6 export and import
in src folder !