Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jeremy Diallo
3,846 Points'anti-noise' program
Hi,
I have little to no experience in programming, apart from solving scientific problems with Pythons (integration, that kind of things). I'm currently learning Javascript, not only because I need it for web development, but also because I was told this language was gaining momentum and was being used for more and more practical applications.
To practice my skills, but also because I need it, I would like to try to write a simple code, but I don't know where to start. What I want to do :
- Read the amplitude of the signal contained in an audio file.
- Alter the amplitude of the signal.
- Return a new audio file with the opposite amplitude so that when I'd play the two files together, they would cancel each other.
Is it something I can do with Javascript ? Where do I start ? How can I get access to the amplitude of an audio file ? If Javascript isn't appropriate for this kind of code, which language should I use ?
1 Answer
Nathan Williams
Python Web Development Techdegree Student 6,851 PointsLooks like there's some pretty good JS audio libraries out there. just a quick google search turned up timbre.js which looks pretty dang cool. Not sure exactly about getting amplitutude and such, but it looks like it definitely supports loading external audio files, so without doing too much digging, i'm guessing this might fit your needs.
Jeremy Diallo
3,846 PointsJeremy Diallo
3,846 PointsThanks i'll look into it and get back to you if I find something that fits my need. Sorry, didn't think of googling libraries, as I said, I'm new to programming ^^