4 ms·
interesting. on the same topic, i been also curious of something and wonder if anyone have the answer to this. lets say i have a track playing just one note (
by jaequery 9y ago
interesting.
on the same topic, i been also curious of something and wonder if anyone have the answer to this.
lets say i have a track playing just one note (to be specific, a frequency measured in hertz, lets say 528) for one minute and we want this to be as pure sounding as possible.
what is the best approach to do this?
in addition, if the audio file is in WAV and we convert them to mp3, do we still lose a lot of quality even though we are just playing same note for 1 minute?
how cam we achieve playing the purest sound without music file taking up too much space?
- kd5bjo 9y agoIn theory, an 1056 Hz 8-bit WAV file filled with alternating +127 and -127 samples will perfectly reproduce a 528 Hz tone. That's about 60kB in size, and a traditional LZW compression (I.e. Zip) will work quite well due to the repetition.
- jcims 9y agoWouldn’t that likely end up as a sawtooth pattern at the speaker and thus introduce a number of harmonics?
- kd5bjo 9y agoNot if the sound driver is doing its job properly -- it's generally bad form to add harmonics above the Nyquist frequency[1] of the input file. If you do have to deal with a buggy sound driver, you can use any small multiple of the tone frequency as your sampling rate and still have efficient LZW compression. [1] https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampli...
- jcims 9y agoWell I'll be...TIL - https://imgur.com/a/vr580 https://imgur.com/a/vr580 Actual sawtooth on the left (done at higher bit rate), tone on right is 2khz tone at 8khz sample rate (audacity won't generate tone right at nyquist). Looks like a triangle wave in audacity, but the tone is fairly pure with just a whisper of harmonics, and those are probably from the speaker.
- tripzilch 9y agoCheck out this video, it addresses that, also it's an amazing video, skilled presentation etc: https://xiph.org/video/vid2.shtml https://xiph.org/video/vid2.shtml (tldw: the answer is no, like the other commenter said, if the D/A converter is working properly)
- 112233 9y agore: pure sounding. make sure track starts and ends on zero crossing, or add volume ramping. Otherwise click on discontinuity will be very non-pure.
- jcims 9y agoMost compact option would probably be a function generator feeding samples to the audio device.
- deleted 9y ago[deleted]