All Projects → jonasrmichel → Rudiments

jonasrmichel / Rudiments

Licence: other
A drum machine written in Rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Rudiments

Shikwasa
An audio player born for podcast
Stars: ✭ 216 (+91.15%)
Mutual labels:  audio, playback
Miniaudio
Single file audio playback and capture library written in C.
Stars: ✭ 1,889 (+1571.68%)
Mutual labels:  audio, playback
Howler.js
Javascript audio library for the modern web.
Stars: ✭ 19,425 (+17090.27%)
Mutual labels:  audio, playback
Managedbass
.Net Wrapper for 'Bass' Audio Library
Stars: ✭ 131 (+15.93%)
Mutual labels:  audio, playback
Waveform Playlist
Multitrack Web Audio editor and player with canvas waveform preview. Set cues, fades and shift multiple tracks in time. Record audio tracks or provide audio annotations. Export your mix to AudioBuffer or WAV! Project inspired by Audacity.
Stars: ✭ 919 (+713.27%)
Mutual labels:  audio, playback
Wad
Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.
Stars: ✭ 1,540 (+1262.83%)
Mutual labels:  audio
Tetris
👾 The original TETRIS game simulator
Stars: ✭ 111 (-1.77%)
Mutual labels:  audio
Instacam
Instant canvas video
Stars: ✭ 106 (-6.19%)
Mutual labels:  audio
Soul
The SOUL programming language and API
Stars: ✭ 1,566 (+1285.84%)
Mutual labels:  audio
Spoken language identification
Identify a spoken language using artificial intelligence (LID).
Stars: ✭ 114 (+0.88%)
Mutual labels:  audio
Skqw
JavaScript Audio Visualizer
Stars: ✭ 112 (-0.88%)
Mutual labels:  audio
Sbplayerclient
支持全格式的mac版视频播放器
Stars: ✭ 110 (-2.65%)
Mutual labels:  audio
Openwhisk Darkvisionapp
Discover dark data in videos with IBM Watson and IBM Cloud Functions
Stars: ✭ 107 (-5.31%)
Mutual labels:  audio
Plumi.app
plumi video sharing
Stars: ✭ 106 (-6.19%)
Mutual labels:  audio
Pd Mkmr
A compilation of vanilla made abstractions
Stars: ✭ 112 (-0.88%)
Mutual labels:  audio
Smusic
html5音乐列表播放器
Stars: ✭ 106 (-6.19%)
Mutual labels:  audio
Spotspot
A Spotify mini-player for macOS
Stars: ✭ 110 (-2.65%)
Mutual labels:  audio
Bepasty Server
binary pastebin server
Stars: ✭ 111 (-1.77%)
Mutual labels:  audio
Poddycast
Podcast app made with Electron, lots of ❤️ and ☕️
Stars: ✭ 111 (-1.77%)
Mutual labels:  audio
Lionengine
Java 2D Game Engine
Stars: ✭ 106 (-6.19%)
Mutual labels:  audio

rudiments

Crates.io Crates.io License License

rudiments is a step-sequencing drum machine that plays rhythm patterns using audio samples.

muppets animal, personal use license

Features

  • 16-step programmable measures.
  • Configurable per-track amplitude.
  • Adjustable tempo.
  • Playback once or on repeat.
  • Supports several audio file formats:
    • MP3
    • WAV
    • Vorbis
    • Flac

Playback and audio file decoding are handled by rodio.

Usage

rudiments 0.1.0
A step-sequencing drum machine

USAGE:
    rudiments [FLAGS] [OPTIONS] --pattern <FILE> --instrumentation <FILE> --samples <DIRECTORY>

FLAGS:
    -h, --help       Prints help information
    -r, --repeat     Repeat the pattern until stopped
    -V, --version    Prints version information

OPTIONS:
    -i, --instrumentation <FILE>    Path to instrumentation file
    -p, --pattern <FILE>            Path to pattern file
    -s, --samples <DIRECTORY>       Search path for sample files
    -t, --tempo <NUMBER>            Playback tempo [default: 120]

Inputs

rudiments loads a pattern file and binds the pattern's tracks to audio files in a samples directory per an instrumentation file.

Pattern file (--pattern)

Each line of a pattern file represents a track. There is no limit to the number of tracks in a pattern. A track contains an instrument name, a 16-step sequence, and an optional amplitude. The instrument name is an identifier and can only appear once per pattern. Each sequence represents a single measure in 4/4 time divided into 16th note steps (x for play and - for silent). A track may optionally include an amplitude in the range of [0,1] inclusive. By default, a track plays at full volume.

This is an example of a pattern file's contents for a standard 8th note groove with the hi-hat track played at half volume.

hi-hat |x-x-|x-x-|x-x-|x-x-| 0.5
snare  |----|x---|----|x---|
kick   |x---|----|x---|----|

Instrumentation file (--instrumentation)

An instrumentation file binds the instruments from a pattern file to audio sample files. Each line of an instrumentation file contains an instrument name and an audio file name. Each instrument may only appear once, but a single audio file may be bound to multiple instruments.

This is an example of an instrumentation file's contents that binds five instruments to four audio sample files.

Note that tom.wav is used for both tom-1 and tom-2.

hi-hat hh.wav
tom-1  tom.wav
tom-2  tom.wav
snare  snare.wav
kick   kick.wav

Samples directory (--samples)

rudiments will look in the samples directory for the audio files listed in the instrumentation file.

Tempo (--tempo)

This adjusts the playback tempo (aka beats per minute). The default playback tempo is 120.

Installation

rudiments can be installed with cargo.

$ cargo install rudiments

Upcoming features

  • [ ] Swing
  • [ ] Reverb
  • [ ] Record to output audio file
  • [ ] Pattern composition
  • [ ] Prevent clipping
  • [ ] Trigger inputs
  • [ ] Different time signatures
  • [ ] Terminal-based UI
    • [ ] Playback tracking
    • [ ] Live pattern editing

Missing a fun or useful feature? Feel free to submit feature requests and PRs!

Demos 🥁

The assets directory contains several example patterns as well as audio samples from the LinnDrum drum machine.

Standard 8th note groove

$ rudiments \
    --pattern ./assets/patterns/standard \
    --instrumentation ./assets/instrumentations/linndrum \
    --samples ./assets/samples/linndrum \
    --repeat

Burning Up (Madonna)

$ rudiments \
    --pattern ./assets/patterns/burning-up \
    --instrumentation ./assets/instrumentations/linndrum \
    --samples ./assets/samples/linndrum \
    --tempo 140 \
    --repeat

Thriller (Michael Jackson)

$ rudiments \
    --pattern ./assets/patterns/thriller \
    --instrumentation ./assets/instrumentations/linndrum \
    --samples ./assets/samples/linndrum \
    --tempo 118 \
    --repeat

Get a Little (Patrick Cowley)

$ rudiments \
    --pattern ./assets/patterns/get-a-little \
    --instrumentation ./assets/instrumentations/linndrum \
    --samples ./assets/samples/linndrum \
    --repeat

I Wanna Dance With Somebody (Whitney Houston)

$ rudiments \
    --pattern ./assets/patterns/i-wanna-dance-with-somebody \
    --instrumentation ./assets/instrumentations/linndrum \
    --samples ./assets/samples/linndrum \
    --tempo 118 \
    --repeat

Tom Sawyer (Rush)

$ rudiments \
    --pattern ./assets/patterns/tom-sawyer \
    --instrumentation ./assets/instrumentations/linndrum \
    --samples ./assets/samples/linndrum \
    --tempo 180

Never Gonna Give You Up (Rick Astley)

$ rudiments \
    --pattern ./assets/patterns/never-gonna-give-you-up \
    --instrumentation ./assets/instrumentations/linndrum \
    --samples ./assets/samples/linndrum
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].