Mechanical Music Digest  Archives
You Are Not Logged In Login/Get New Account
Please Log In. Accounts are free!
Logged In users are granted additional features including a more current version of the Archives and a simplified process for submitting articles.
Home Archives Calendar Gallery Store Links Info

End-of-Summer Fundraising Drive In Progress. Please visit our home page to see this and other announcements: https://www.mmdigest.com     Thank you. --Jody

MMD > Archives > May 2024 > 2024.05.21 > 01Prev  Next


Converting Any Standard MIDI File to G-code
By Piotr Barcz

[ Ref. https://www.mmdigest.com/Archives/Digests/202404/2024.04.23.02.html 

Success! MIDI to G-code finally working for laser piano roll!

After much pain and suffering -- mostly on Spencer Chase's end because
he wrote the program -- the conversion of MIDI files to G-code files
that can be cut by a modified laser engraver into piano rolls has been
finally accomplished!

Anyone who builds a machine to Spencer's specifications (ask him for
the instruction manual) can now cut, easily and quickly, a piano roll
from literally any MIDI file under the sun that is a solo piano piece
(and with some tweaking, even orchestral MIDIs) into a roll!

Spencer is still tweaking some things about the program; however,
I've already been able to convert the resulting G-code into images
and play them through the PlaySK piano roll reader like a real roll!
For those who want to code Duo-Art rolls by just drawing in the coding
on the image, you can do it!

I'm going to make a video on how to process MIDI files into images
as for now the perforator part of things is still being polished up.
However, even without a perforator, you could potentially print the
piano roll images and cut out the holes yourself (not recommended,
though).

As far as mastering goes, because the laser engraver isn't stepper based
(unlike the perforators used by Keystone, Julian Dyer at Laguna and
Tim Baxter at Meliora), the rolls can be mastered, in theory, to punch
100 rows per inch of paper which means that any timing discrepancies and
roll editing that used to be necessary are now pretty much redundant.

I currently have been mastering new files to 40 punches per inch if the
MIDI file is a standard one that is recorded to a metronome because that
gives even better timing precision than just slapping a file onto the
punch grid and rounding to the nearest row.

Also I'd like to mention that mastering rolls in general would be
extremely difficult if it weren't for Julian Dyer and his brilliantly
put together mastering program Perforation Editor. It's easy to use,
has a ton of functionality and for people who want to make their own
perforators, using the PunchMIDI format is your best bet at success!

In any case, as I mentioned, Spencer is still buttoning up a couple of
things but as it stands now, the process can be used to make rolls as
long as someone has the machine to do it!

Piotr Barcz
thepiotrcorporation@gmail.com.geentroep [delete ".geentroep" to reply]


(Message sent Fri 24 May 2024, 15:49:10 GMT, from time zone GMT-0700.)

Key Words in Subject:  Any, Converting, File, G-code, MIDI, Standard

Home    Archives    Calendar    Gallery    Store    Links    Info   


Enter text below to search the MMD Website with Google



CONTACT FORM: Click HERE to write to the editor, or to post a message about Mechanical Musical Instruments to the MMD

Unless otherwise noted, all opinions are those of the individual authors and may not represent those of the editors. Compilation copyright 1995-2024 by Jody Kravitz.

Please read our Republication Policy before copying information from or creating links to this web site.

Click HERE to contact the webmaster regarding problems with the website.

Please support publication of the MMD by donating online

Please Support Publication of the MMD with your Generous Donation

Pay via PayPal

No PayPal account required

                                     
Translate This Page