Page 1 of 1

Music

Posted: Tue Sep 02, 2014 9:24 pm
by Blaine
I am new to the forum and wanted to share my little weekend project.
I was having some trouble calibrating my printer so I decided to take a break and do something that requires no calibration but is just as fun as printing.

[youtube]http://www.youtube.com/watch?v=NJJZVc45j-s[/youtube]

If you're interested in making your own tune or recompiling the GCode for your machine,
I created a C# program to convert notes to GCode.

Attached is the visual studio source, a file with .gcm as the extension which is my program's save file format which holds the note data, and the GCode that plays the song in the video. All of these files are wrapped in a single file called All Files.zip.

I cannot take responsibility for any crashes resulting from the use of my program or the gcode I have attached. Having said that, I have not had any issues with my program yet but it is still a work in progress. I believe the GCode will work on any stock ORION or any delta that has 80 steps/mm steppers and runs in absolute position mode. You will have to determine if the generated GCode will work with your machine before running it. If you do not have 80 steps/mm, just compile the code and run the program, load the attached .gcm file, change the steps/mm, and generate the new gcode. I have not tried it but you may be able to use Visual Studio Express to open the visual studio solution and build it.

-Blaine

Re: Music

Posted: Fri Sep 05, 2014 1:13 pm
by teejaydub
So awesome!

Now, with just a little more math... OK, a LOT more math... you could get three-note chords going, using each motor individually...

Re: Music

Posted: Sun Nov 02, 2014 1:18 am
by richardphat
Necro, this is just a fantastic job. Can you share the algorithm? I use matlab instead and was figuring out how to use it to write gcode music.

Re: Music

Posted: Sun Nov 02, 2014 2:29 pm
by Eaglezsoar
Thanks for the file! Great stuff!