Showing posts with label Sound. Show all posts
Showing posts with label Sound. Show all posts

Saturday, November 08, 2025

8-bit PCM Audio Player

 

https://claude.ai/public/artifacts/04b251dd-f000-4113-9da7-2e6ec663e6a4

make a sound player where a the users uploads an raw pcm 8 bit digital audio file and they are played by the browser.

I'll create a sound player that can load and play raw 8-bit PCM audio files in the browser.

8-bit PCM Audio Player
Interactive artifact 

I've created an 8-bit PCM audio player with the following features:

Features:

  • File upload - Drag and drop or click to upload raw 8-bit PCM files
  • Configurable sample rate - Set the sample rate (default 44100 Hz)
  • Mono/Stereo support - Choose between 1 or 2 channels
  • Playback controls - Play, pause, and stop buttons
  • Seek bar - Click to jump to any position in the audio
  • Volume control - Slider and mute button
  • Time display - Current time and total duration
  • Visual feedback - Animated waveform visualization

How it works:

  1. Upload your raw 8-bit PCM file (unsigned, 0-255 values)
  2. Set the correct sample rate and channel count for your file
  3. The player converts the 8-bit data to float32 format for the Web Audio API
  4. Use the controls to play, pause, seek, and adjust volume

The player assumes 8-bit unsigned PCM data where each byte represents one sample (0-255 maps to -1.0 to 1.0 in the audio buffer).



Audio files are available from :

https://github.com/johnsokol/AudioByte/tree/master/sound


BLU-TERT.SND   8000 hzCOKEISIT.M11  11 KhzIMF.M11  11,000 hzWC1.SND    8000hz 

Friday, August 18, 2023

Digital Audio Playback - 1987


Digital Audio playback from EPROM , older version for Sound Effects Car Horn
555 Timer, 2x 74LS373 Counters, and 74LS00 quad Nand , 74LS32 quad XOR


Wednesday, June 17, 2020

Audio Byte - Parallel Port R2R Audio Adapter, Photos of Prototypes.



















  These we 44Khz 8bit digital recorders, the small PCB one plugged in to my home made Eprom programmer and used it Digital I/O lines on my TRS80 Color Computer.







 These were Aluminum jigs I made to hold the 18 resistors in place while we soldered them together without a PCB.  We made 3000 units this way. 

These 18 Resistors formed an R-2R network.  In my case I chose 50K Ohm and 100K Ohm.












AudioByte, Amiga Mod files and Chip Tunes.



It all comes full circle. 

All that stuff  Jesse Monroy and myself did 30 years back,
AudioByte (Originally Sound Byte)
The Original Parallel Port Dongle audio adapter.


Editor and Mod file players in Intel x86 assembly code.

More at:  http://www.dnull.com/zebraresearch/
               https://github.com/johnsokol/AudioByte
   

 Now I stumble on WebAssembly and OpenGL and realize I have more power in a browser tab  than I had on the $250,000 4 cpu SGI workstation at stanford.

Certainly dwarfing the 10 Mhz 286 I had in those days.

Then I found chiptunes. This is super cool. 

These guys are mad crazy about video game emulators and reproducing the hardware faithfully.

https://deskjet.github.io/chiptune.js/    A player you can drop Amiga Mod files on and play them.

 http://www.dnull.com/mod/files.html   My mod file collection.

 And the new version, not as good.
https://deskjet.github.io/chiptune2.js/#  


But this is WOW!!!!   it's like wow.  A universe unto itself. 
https://mmontag.github.io/chip-player-js/browse/ModArchives?play=ModArchives%2Faws_aq16.xm

Best part it's all open source and hosted free of charge on github. 


--