4 ms·
How do I tell what language to use with this package? From what I can tell it uses react. I have tried node, angular, and react but this installation page con
by ozzyman700 8y ago
How do I tell what language to use with this package?
From what I can tell it uses react. I have tried node, angular, and react but this installation page confounds me [0]. as far as I understand, I have been using either npm init, ng init, or create-react-app to initialize the directory for an example project. Then I do npm install tone inside of the directory I created.
I have found this [1] playground for tone but it does not elucidate how the library should be or is referenced.
I'd like to work with generative music but the amount I must know and choose between in a js project always seems to freeze me at the project init phase.
In the process of editing this comment I have finally gotten tone.js to work. Here are the steps i followed:
npm install create-react-app
create-react-app tone-test
cd tone-test
npm install tone
add "import Tone from '../node_modules/tone'" to the top of App.js this step is what I was messing up previously i believe
then I just throw tone commands at the bottom of App.js and they play on pageload, this is exactly what I wanted for now.
[0] https://github.com/Tonejs/Tone.js/wiki/Installation https://github.com/Tonejs/Tone.js/wiki/Installation
[1] https://codepen.io/loderunnr/pen/AXoAko https://codepen.io/loderunnr/pen/AXoAko
- SonicSoul 8y agoits gonna be tricky to learn this way.. i'd recommend getting the basics down first. i can recommend frontendmasters.com Brian Holt intro to web development. he's great .. i learned React from his courses :)