Code Monkey home page Code Monkey logo

midi2pico's Introduction

midi2pico

A Midi to PICO-8 converter.

Requires MIDI.lua (direct link)

# luarocks install midi

Usage:

lua midi2pico.lua somesong.mid songdata.p8

Various options are available, run the program with no arguments to get help.

Tips:

  • Mute problematic channels with --mute, timidity's --mute argument can aid in finding problematic channels.
  • Halve the time division to possibly allow more mid-note effects.
  • Drums are problematic. Use --dshift to shift drum pitch, --drumvol=n to change drum volume, or --mute=10 to remove drums all together.

midi2pico's People

Contributors

gamax92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

midi2pico's Issues

Can't load resulting cart in PICO-8

The cartridge files produced by midi2pico can't be loaded in PICO-8. They seem to be missing the version header information.

pico-8 cartridge // http://www.pico-8.com
version 16 -- ?

Midi is too long or time division is too short

I see this when converting

Warning: Regained 1 notes
Warning: Regained 1 notes
Warning: Regained 1 notes
Info: Regained 68 notes
Info: Regained all notes back!
Info: Performing second corrective pass ...
Info: Trimming 2 slices ...
Info: 240 patterns
Info: Writing to 'songdata.p8'
lua: Midi is too long or time division is too short.

I've attached a midi file which is 58 seconds long.
kickstar2.mid.zip

What is the maximum size?

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.