Skip to content

Web based library to convert mus format audio files from Doom wads to midi format written in Typescript

License

Notifications You must be signed in to change notification settings

gareththegeek/mus2midi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mus2midi

A library for converting mus format audio files found in Doom wads to midi format.

Thanks to the following resources for helping me figure this out:

Installation

yarn add mus2midi

or

npm install --save mus2midi

Usage Example

Reading the file e1m1.mus, converting to midi and writing out to e1m1.mid.

import { promises as fs } from 'fs'
import { mus2midi } from 'mus2midi'

(async () => {
    const mus = await fs.readFile('e1m1.mus')
    const mid = mus2midi(mus)
    await fs.write('e1m1.mid', mid)
})()

Build

yarn
yarn build

About

Web based library to convert mus format audio files from Doom wads to midi format written in Typescript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published