惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog
Jina AI
Jina AI
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
美团技术团队
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
The Cloudflare Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
GbyAI
GbyAI
腾讯CDC
MongoDB | Blog
MongoDB | Blog

KittenLabs

Casiomania Marantz UD5007 power supply replacement AnotterKiosk GPD Pocket 4 Speaker DSP IP-over-Toslink FX3 LVDS Frame grabber Extreme Pi Boot Optimization WiFi auth with OsmoHLR/SIM cards Windows 11 tweaks & usability improvements Using custom domains as a Fediverse redirect 25GBit/s on macOS & iOS Router overclocking Real gaming router Manage RDP certificates on Windows using SSH 20 port USB-C charger Reviving a dead Gigabyte MJ11-EC1 mainboard NVMe BIOS Option ROM 2.5GbE PCIe NIC mod board Blinkekatze ThinkPad T41/T43 USB-C HomeSwitch 4 DC UPS (Lithium) OLED nametag Thermal camera macro Blåmba LPT printer emulator PC104 ISA adapter Palm IIIc USB-C OtterCast Gigaset DECT debug adapter
Analog floppy synthesizer
By Manawyrm | Saturday, October 29, 2022 · 2022-10-29 · via KittenLabs

Or: How not to build a Mellotron

What is it?

3.5" floppy disks hold information by storing them magnetically on 80 different tracks (effectively circles) across the media. A stepper motor moves a read/write head across the media and can select which track is being accessed.

In normal computer usage, the tracks are being formatted/modulated with modified frequency modulation (MFM) to store digital data onto these tracks.

In this project, we’re using the magnetic media as analog storage, more like an audio cassette or reel-to-reel tape. The electrical interface of a IBM PC-compatible 3.5" floppy drive is very simple and just has a number of pins to step the head motor into either direction, as well as the data pins, which will read/write raw flux transitions on the magnetic media. The floppy drive itself has no real “digital” electronics, it just contains some op-amps, motor drivers, etc.

How does it work?

By modulating analog audio as a pulse-width modulated (PWM) signal into a “digital” bitstream (not unlike a Class-D amplifier), we can send analog audio to the floppy drives write head.

In this project, an NE555 was used to modulate a 300kHz carrier wave with sample audio data. This sample audio data can be provided from a sound card (or in this case by an Arduino). The same Arduino also controls the STEP and DIRECTION pins of the floppy drive and can move the head across the magnetic media.

Each of the 80 tracks is then formatted with a different sample. Typically, each of the track represents a musical note. From the outer tracks to the inner tracks, the notes go up higher and higher. By stepping the head across the disk, the appropriate note/sample can be played back.

An Arduino was used to parse MIDI input (either from a PC or MIDI keyboard), it counts the current location of the head and steps the motor to the correct notes as fast as possible. This Arduino also controls the ENABLE line of the floppy drive to turn the sample playback on/off accordingly.

Giana Sisters (square wave sample disk)

23 (square wave sample disk)

Welle: Erdball’s 23 (originally written for the C64’s SID chip) has very fast arpeggios.
The head stepper motor has a hard time keeping up with the changing notes. Seek speeds are limited to about 4ms per step.

Mellotron “Flute” sample disk (🍓)

In this example, a flute sample is stored on the disk. You can hear the large DC offset from enabling/disabling the output driver in the floppy drive and also hear the index pulse on the media. With better electronics, both of these artifacts could be silenced.