Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #39746
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | How hard can it be? Audio processing |
| Date | 2021-03-23 12:10 +0000 |
| Organization | A little, after lunch |
| Message-ID | <s3clre$o5j$1@dont-email.me> (permalink) |
In principle audio processing in more or less real time is simple. You need a 'call back' function that gets presented with one or more samples of digital audio, and you return one or more samples of modified data, modified by the state of some [global] variables (controls) and the state of the sample, and previous ones...in essence that is ALL digital signal processing does, or needs to do. The cleverness is in the algorithms that do the modification. <rant>Until object orientation and computer scientists (after ArtStudents™, the next most dangerous class to be allowed near a computer) get in the way, and you need a 100k library just to even change the volume. And as is usual with any API, the documentation tells you how to use it, but never why you might want to, and invents a huge number of new concepts that are completely unnecessary in order to preserve the sanctity of the CodeGurus™ who wrote the damn thing. </rant> So my question is this: what is the simplest and most minimal way to 'intercept' a stereo audio stream - might be from a file, might be from a radio station or live TV stream - in a browser and do so minimalist signal processing that is NOT provided by some 3rd party library, but actual self written code in terms of 'modify this sample dependent on the state of a global variable or variables, and previous samples' Answers in less than 10k lines of code will get a virtual beer token -- There is something fascinating about science. One gets such wholesale returns of conjecture out of such a trifling investment of fact. Mark Twain
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
How hard can it be? Audio processing The Natural Philosopher <tnp@invalid.invalid> - 2021-03-23 12:10 +0000
Re: How hard can it be? Audio processing JJ <jj4public@gmail.com> - 2021-03-23 21:01 +0700
Re: How hard can it be? Audio processing The Natural Philosopher <tnp@invalid.invalid> - 2021-03-23 17:17 +0000
Re: How hard can it be? Audio processing JJ <jj4public@gmail.com> - 2021-03-24 23:16 +0700
Re: How hard can it be? Audio processing The Natural Philosopher <tnp@invalid.invalid> - 2021-03-24 17:48 +0000
Re: How hard can it be? Audio processing John G Harris <niam@jghnorth.org.uk.invalid> - 2021-03-24 18:38 +0000
Re: How hard can it be? Audio processing The Natural Philosopher <tnp@invalid.invalid> - 2021-03-24 20:03 +0000
Re: How hard can it be? Audio processing "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-03-24 18:01 -0700
Re: How hard can it be? Audio processing The Natural Philosopher <tnp@invalid.invalid> - 2021-03-25 07:39 +0000
Re: How hard can it be? Audio processing The Natural Philosopher <tnp@invalid.invalid> - 2021-03-25 07:50 +0000
Re: How hard can it be? Audio processing "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-03-25 06:10 -0700
csiph-web