Live data from Hacker News

The sound of space-filling curves

win.tue.nl

11–20 of 23 posts

Re: The sound of space-filling curves

#11
post #3

The synth cutting off and glitching are so irritating! Seems like a lot of work to put into something to leave really jarring artifacts all over. If you ever create or edit audio, all tracks and samples should start and end on the zero crossing. Otherwise the jump "back" to zero introduces lots of noise. Sticks out like a sore thumb on a spectograph

Reminds me of the postscript to this Ben Krasnow video (from about 13:45) which discusses an analogous effect in a circuit using a capacitor. https://youtu.be/xyMH8wKK-Ag

Re: The sound of space-filling curves

#12
post #9
post #6

Earlier quoted context omitted.

In 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.

Wouldn’t that likely end up as a sawtooth pattern at the speaker and thus introduce a number of harmonics?

Not 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_sampli...

Re: The sound of space-filling curves

#18
post #17

Looking forward for the inverse thing - convert Bach music into curves

That won't be possible given the current mapping procedure. It imposes a certain set of constraints on the space of possible tunes that are not obeyed by any of Bach's works: A fixed number of voices (number of notes that can be played simultaneously), greater than 1, with all voices always playing some note (i.e., there are no rests).

If a piece of music does not obey those constraints, it cannot be back-transformed into a continuous curve in a fixed number of dimensions. You would need to come up with some other, more complex, method of mapping curves to music in order to handle arbitrary musical compositions.

Re: The sound of space-filling curves

#20
post #5

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…

Most compact option would probably be a function generator feeding samples to the audio device.
Post reply on HN