Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

CNC Music Factory - MIDI to gcode

Loading...

Sign in or sign up now!
81,372
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 1, 2009

I'm making a note here - *huge success*

First output from 'mid2cnc.py', a program to convert MIDI to gcode linear moves, allowing one to play music on a CNC machine (will publish it when it's done!). The music is Jonathan Coulton's "Still Alive" from the ending credits of Portal.

Basically, it's possible to compute a combination of (distance, feedrate) that will cause the stepper motor to spin at an exact frequency corresponding to a musical note. With a little vector magic, the same can be done for (x, y, z, feedrate) to produce chords as the machine follows a 3D line through space.

TODO:
Handle more than 3 notes played at a time (drop some if there are not as many axes...)

Lock notes to their initial axis for their duration (maybe only an issue on my ghetto machine where the axis motors sound very different)

(try to) Improve frequency accuracy where 2 or more notes are played simultaneously (may be a CNC software issue)

A description of how it works is on my blog at http://tim.cexx.org/?p=633

Category:

Entertainment

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:

Top Comments

  • That is awesome.

    ... but does it CNC a cake if you turn the spindle on and put something underneath?

  • hahahh cnc wanted a break and begun to sing

Video Responses

This video is a response to 8080 Computer playing Portal Still Alive
see all

All Comments (87)

Sign In or Sign Up now to post a comment!
  • Portal 2 song ? :)

  • what happens if u play Devo backwards in it

  • 2 people's brains could not comprehend the awesomeness of this, so thumbed down (and probably had an aneurysm.)

  • Crazy!!

    

  • Cool converter!

    Took me some time to run this Python script though ;)

    CNC mill singing tetris theme was huge "visitor magnet" at open days at our school... Kinda sad that it was more interesting than actual milling though...

  • @evi1wombat NO! The cake is a lie!

  • Hope this bot doesn't lose sight of its original purpose and go broadway.

  • i tried some downloed midi, even made a solo track , but the output files in black. help

  • THIS IS AWESOME! :D everytime i hear this song it makes me think of old computers and how lovely my old amiga A500 is! ^^

View all Comments »
Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more