6 ms·
The 1-Bit Instrument
- joezydeco 7y agoSeems like the author owned a ZX Spectrum and little else. There were other 1-bit machines out there, like the Apple ][. Paul Lutus' Electric Duet managed to get two-voices out of the speaker and he describes the process here: https://arachnoid.com/electric_duet/index.html https://arachnoid.com/electric_duet/index.html
- seph-reed 7y agoThis was the top hit for 1bit music that I could find: neat! https://www.youtube.com/watch?v=lZRcGWa0Rrw https://www.youtube.com/watch?v=lZRcGWa0Rrw
- etaioinshrdlu 7y agoYou can make any sound with 1 bit if you can switch it fast enough. In fact it is called a Class D amplifier https://en.wikipedia.org/wiki/Class-D_amplifier https://en.wikipedia.org/wiki/Class-D_amplifier. They are often very-high quality, and very efficient! This is also how high quality electronic motor drives and servos generally work.
- cardiffspaceman 7y agoSony used to hype its 1-bit CD players. They did invest in sending a bitstream to the amplifier at a high enough bit rate to keep the resulting "quantization" noise from being audible in the first place. Switched power supplies have always seemed to be, to me, kin to class D amplifiers, though the block diagrams don't highlight the similarities.
- etaioinshrdlu 7y agoYeah, it's basically PWM, which is used in basically everything.
- FullyFunctional 7y agoWell, it Sigma-Delta modulation which isn't PWM.
- FullyFunctional 7y agoI should have added: "But Sigma-Delta is as easy (in fact, probably easier) to implement that I really don't understand why people ever use PWM anywhere. It's so inferior IMO."
- etaioinshrdlu 7y agoWell PWM is probably easier to analyze mathematically. The harmonics produced are more predictable. Knowing min off-time and on-time so easily is helpful when designing circuits. It's also super easy to implement PWM in digital logic or software, it basically needs only timer and a comparator.
- nyanpasu64 7y agoDoes PWM generate weird phase artifacts when switching between low and high amplitudes? Much like Doppler distortion in earbuds?
- FullyFunctional 7y agoSigma-Delta is just an adder which is equivalent to a comparator thus it might be cheaper actually: module pdm(clk, level, O); parameter N = 16; input wire clk; input wire [N-1:0] level; output wire O; reg [N+1:0] sigma = 0; assign O = ~sigma[N+1]; always @(posedge clk) sigma <= sigma + {O,O,level}; endmodule I’ll grant you that PWM is a bit more intuitive. I bet there is a more thorough comparison between them but I haven’t seen it.
- dreamcompiler 7y agoSigma-Delta is very easy to implement as well; it just requires a different way of thinking. In S-D you always try to preserve and compensate for the errors you make in quantization, while in PWM you throw the errors away. In physics you'd label S-D an error-conserving system vs PWM an error-dissipative system.
- eru 7y ago> They did invest in sending a bitstream to the amplifier at a high enough bit rate to keep the resulting "quantization" noise from being audible in the first place. Well, they also put a low-pass filter after.
- dreamcompiler 7y agoThey're basically identical circuits except in a power supply the input is DC (or for an inverter, a sinewave) while in a Class D amp the input is an arbitrary analog signal.
- fiskfiskfisk 7y agoSee also the Super Audio CD format: https://en.wikipedia.org/wiki/Super_Audio_CD https://en.wikipedia.org/wiki/Super_Audio_CD
- ksaj 7y agoLikewise, musical roads essentially turn your vehicle into a 1-bit amplifier. https://en.wikipedia.org/wiki/Musical_road https://en.wikipedia.org/wiki/Musical_road
- dreamcompiler 7y agoExactly. The one in Tijeras is impressive.
- klyrs 7y agoIndeed, the ultimate limit of quality is governed by quantum fluctuations... and incredibly, we're already "there". https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5520655/ https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5520655/
- nitrogen 7y agoPretty fascinating how much is involved in making a perfect 1kHz wave. The paper mentions metrology. What are these used to measure?
- amelius 7y agoThey are very good indeed. But of course, a true audiophile wouldn't use them ;) By the way, while the principle behind class D amplifiers was already long known, it's the gallium nitride MOSFET technology used for switching that makes them really of sufficient quality.
- kragen 7y agoYeah, I think the author needs to take an introductory Signals & Systems class. They could learn not only about delta-sigma DACs but also the relationship between Fourier decomposition and LTI signals, plus the basics of psychoacoustics. They say, "Appreciation of how the 1-bit waveform acts conceptually (and psychoacoustically) is necessary for understanding and implementing timbral and sonic interest in 1-bit music," but they themselves lack anything more than the rudiments of that appreciation. There are some fun techniques in the article, though! I was surprised to see my friend Norm Hardy mentioned — I had never realized he was a pioneer of computer music :)
- tasty_freeze 7y agoThere was a music program for the Sol-20 microcomputer, which was an 8080 running a tad slower than 2MHz. 4 voice polyphony. The program came with a tiny card plugged into the S-100 bus consisting of nothing more than an RC filter. The Sol didn't use interrupts. The program worked by toggling EI/DI (enable and disable interrupt) to cause one of the pins on the s-100 bus to toggle. The intonation of especially suffers because those notes are more affected by the fixed 8080 clock cycle. Here is a clip of it. This clip is from an emulator of the Sol-20, and it uses a higher order filter than the first order RC used by the original hardware. The real hardware is harsher sounding than this. The ten seconds of the 25 second clip is unimpressive, but the 2nd half shows how much can be done with such limited hardware. http://sol20.org/media/d-minor.mp3 http://sol20.org/media/d-minor.mp3
- ksaj 7y agoIt reminds me of the PC-Speaker program which ran on 8086 computers (at 4.77Mhz or 12Mhz if you had a turbo switch). PC-Speaker was really quite distorted by comparison, but you could create reasonably understandable voice. Anything too complicated just sounded like a hissy mess.
- mycall 7y agoDAISY.COM
- ajuc 7y agoKinda reminds me of this :) https://www.youtube.com/watch?v=ph5OW9p-GHM https://www.youtube.com/watch?v=ph5OW9p-GHM
- 8bitsrule 7y agoYeah! I have to wonder how that flanging that kicks in at ~12sec is achieved. (Same signal slightly delayed? Another voice?) (Found the program ... no longer fluent in sight-reading 8080 hex though!)
- jedimastert 7y agoRelated in name, but still super cool, is the 1-Bit Symphony by Tristan Perich. He programmed a symphony on an ATTiny that outputs directly from one of the output pins (through a volume pot) to the headphone jack. http://www.1bitsymphony.com/ http://www.1bitsymphony.com/
- dr_dshiv 7y agoMy prized possession. Beautiful work. Implemented in a clear CD case.
- isoprophlex 7y agoHoly shit that is amazing! I'm getting one immediately, what a beautiful concept
- eganist 7y agoIf you want to listen first and already have spotify: https://open.spotify.com/album/6Ie1GtBI9ZCfmcT1OsK8a0?si=Aov1MkSvTV6rkd4ZyeWAjQ https://open.spotify.com/album/6Ie1GtBI9ZCfmcT1OsK8a0?si=Aov... If you're into chiptunes, this hits the spot.
- zimpenfish 7y agoLet us not forget Tim Follin's masterpieces: Agent X and Agent X II. Hearing this come out of a Spectrum in the mid-80s was astonishing. I recorded them onto tape for Walkman listening. https://www.youtube.com/watch?v=JOZ8rbmlWrk https://www.youtube.com/watch?v=JOZ8rbmlWrk https://www.youtube.com/watch?v=pDfsAemVaDA https://www.youtube.com/watch?v=pDfsAemVaDA
- Flow 7y agoHere's another tune along with a remake of it for the C64. Tim Follins original ZX Spectrum tune: https://www.youtube.com/watch?v=Iz46pCROkjM https://www.youtube.com/watch?v=Iz46pCROkjM Remake: https://www.youtube.com/watch?v=shj1_T68SBo https://www.youtube.com/watch?v=shj1_T68SBo
- snalty 7y agoThis video explains how they used 1-bit sound to generate Pikachu's sounds in Pokemon Yellow on the Game Boy. https://www.youtube.com/watch?v=fooSxCuWvZ4 https://www.youtube.com/watch?v=fooSxCuWvZ4
- willis936 7y agoNeat work, but their method of improving the audio quality is not very good. They could get much better results by looking at the magnitude spectrum of the source audio, lowpass filtering with a cutoff chosen to keep 95% (if possible) of the energy (likely 1-2 kHz) then downsampling to nyquist. 4 kSamp/s @ 4 bits per sample would sound much better than his method, and it wouldn’t take extra fancy software tricks. The driver/speaker on a gameboy isn’t going to have a very controlled lowpass filter, and it’s behavior is also unknown. Delta-sigma is heavily reliant on the output lowpass filter.
- layoutIfNeeded 7y agoSo basically an SACD.
- willis936 7y agoWithout oversampling and with a lot of clever hacks.