Coder Social home page Coder Social logo

jakimpl / audiotokenizer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 723 KB

A FastTracker2/ImpulseTracker utility for approximating 16-bit mono WAV signal using small pieces (acoustic tokens).

Python 5.80% Jupyter Notebook 94.20%
audio fasttracker2 impulsetracker it openmpt xm

audiotokenizer's Introduction

_AudioTokenizer

A FastTracker2/Impulse Tracker utility for converting 16-bit mono WAV signals (44.1 kHz) into short-length-sample approximations embedded into a tracker module.

The algorithm takes several signals (of the same shape and sample rate 44100 Hz) and combines into a single module. The explanation of the process is briefly described in explanation.ipynb

Usage

To run the script, you need to have Python 3.6+ installed. The script uses the following libraries: q

python main.py -i <input_files> -l <layers> -s <samples> -o <output_file> -t <title>

For example:

python main.py -i audio/bass.wav audio/drums.wav -l 16 16 -s 32 32 -o module/drumbass.xm -t "Drum & Bass"

will create a FastTracker2 module with 16 channels per wave file, each with unique 32 samples.

Dependencies

The script uses the following libraries:

  • numpy
  • scipy

Occasionally, you may want to use the ipython library to play a sample in a Jupyter notebook:

from utils import play_sample
import scipy.io.wavfile as wav

sampling_rate, signal = wav.read("audio/bass.wav")
play_sample(signal)

audiotokenizer's People

Contributors

jakimpl avatar

Stargazers

Jongwook Kim 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.