It should be played in the client / browser.
I don’t necessarily want to save them, it’s just for playback. If I could generate them client-side / in the browser, I assume that would save me some bandwidth.
It can be any format, if .wav is the easiest, .wav it shall be
Would C/C++ be able to generate those files in the browser / clientside?
I thank you for that.Thanks Heater, you are great.
That started around the time I bought my first Raspberry Pi
That's the option I'm going for. I don't know why, but I like to keep things as 'vanilla' as possible.Heater wrote: ↑Tue Sep 04, 2018 8:55 amOr get down and use the browser Web audio API directly: https://developer.mozilla.org/en-US/doc ... _Audio_API
Code: Select all
<script> // create web audio api context var audioCtx = new AudioContext(); // create oscillator (tone) and gain (volume) node var tone = audioCtx.createOscillator(); var volume = audioCtx.createGain(); // set oscillator type (sine, square, sawtooth or triangle) tone.type = 'sine'; // set oscillator frequency in Hz tone.frequency.value = 400; // set gain volume (above 1 will clip) volume.gain.value = 0.5; // set tone destination to go through volume tone.connect(volume); // set volume destination to output volume.connect(audioCtx.destination); // start oscillator x seconds after timestamp tone.start(1); // stop oscillator x seconds after timestamp tone.stop(4); </script>
blurb wrote: FAUST (Functional AUdio STream) is a domain-specific purely functional programming language
for implementing signal processing algorithms
in the form of libraries,
or standalone applications.
I prefer client side because that means less stress for the server. But thanks for the suggestion, it looks like a really cool programming language and I might have some fun with it later onr3d4 wrote: ↑Thu Sep 06, 2018 9:11 amperhaps ? on the server
https://en.wikipedia.org/wiki/FAUST_(pr ... _language)
Are you sure your speakers can play 12.5K? I can comfortably hear it on my studio speakers, barely hear it on my iPhone/iPad and can't hear it at all on a pair of old dusty HiFi speakers.