GithubHelp home page GithubHelp logo

davelab6 / bucklespring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zevv/bucklespring

0.0 3.0 0.0 4.86 MB

Nostalgia bucklespring keyboard sound

License: MIT License

Makefile 1.39% C 98.61%

bucklespring's Introduction

Nostalgia bucklespring keyboard sound

This project emulates the sound of my old faithful IBM Model-M space saver bucklespring keyboard while typing on my notebook, mainly for the purpose of annoying the hell out of my coworkers.

Model M

Bucklespring runs as a background process and plays back the sound of each key pressed and released on your keyboard, just as if you were using an IBM Model-M. The sound of each key has carefully been sampled, and is played back while simulating the proper distance and direction for a realistic 3D sound palette of pure nostalgic bliss.

Installation

Linux

To compile on debian-based linux distributions, first make sure the require libraries and header files are installed, then simply run make:

$ sudo apt-get install libopenal-dev libalure-dev libxtst-dev
$ make
$ ./buckle

Windows

(The windows build is currently broken, it seems that switching from freelut to alure broke windows, I might fix this one day...)

For windows the binary is provided in buckle.exe. To run on windows, make sure to first install OpenAL from the official package at https://www.openal.org/downloads/.

The source can be cross-compiled from linux using the MinGW compiler:

$ make mingw=1
$ buckle.exe

The program is launched in the background, and has no user interface whatsoever. To terminate, find 'buckle.exe' in the task manager and kill. Any volunteers for implementing a systray icon?

Usage

usage: ./buckle [options]

options:

  -d DEVICE use OpenAL audio device DEVICE
  -g GAIN   set playback gain [0..100]
  -h        show help
  -l        list available openAL audio devices
  -p PATH   load .wav files from directory PATH
  -s WIDTH  set stereo width [0..100]
  -v        increase verbosity / debugging

OpenAL notes

Bucklespring uses the OpenAL library for mixing samples and providing a realistic 3D audio playback. The default OpenAL settings can cause a slight delay in playback. Edit or create the OpenAL configuration file ~/.alsoftrc and add the following options:

period_size = 32
periods = 4

If you are using headphones, enabling the head-related-transfer functions in OpenAL for a better 3D sound:

hrtf = true

bucklespring's People

Contributors

zevv avatar jwilk avatar akbertram avatar petertonoli avatar

Watchers

Dave Crossland avatar James Cloos avatar  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.