Git Product home page Git Product logo

uxnwave's Introduction

uxnwave

WAV audio player for Uxn.

uxnwave can play files much larger than Uxn's 64k address space, and can output "high-quality" 12-bit PCM audio using some trickery.

This is only a proof of concept, eventually I will add a better GUI.

Usage

Download the ROM here, or build using uxnasm. drifblim will not work since it lacks macro support.

You'll need a Uxn emulator. Uxn and Uxn32 have been tested, anything else may not work correctly.

You'll also need a WAV file to play. WAVs must be 16-bit stereo, 44100Hz. Anything else will not play back correctly.

Pass the WAV file to be played as a command line argument:

uxn wavplay.rom file.wav

  • Press Space to pause/resume playback.
  • Press Left to restart from the beginning
  • Click anywhere to skip forward/backward

How it works

All 4 audio devices are playing a looping sample. Audio is streamed into each buffer as it is playing -- the buffers are split in half, and while one half plays, the other half is loading audio data from the file.

Varvara audio devices can only play back 8-bit audio. To get around this, uxnwave uses two audio devices per stereo channel. One device plays the upper 8 bits of each 12-bit PCM sample, and the other plays the lower 4 bits at 1/16th volume. When mixed together, you hear the full 12 bits of audio.

uxnwave's People

Contributors

vanjac avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.