Epilog – The Code

It’s been some time since I’ve checked, but I’ve enjoyed hearing from a few intrepid folks who are building their own instruments! Hope my blog has helped spread the love 🙂

Recently, I got a request for the code that I used. I’ve been a bit reluctant to post that because, frankly, it is a bit messy (understatement). Also, my brain is a bit atrophied, and I without a fair amount of effort, I’m not sure I can remember the exact calling sequence. Wish I would have cleaned this up and documented while it was fresh…sigh.

However, if you are willing to dig in a bit, below is a zip file with the various functions that I used. This is mostly Zhao’s code with a little wrapping by me. What might help to get you started is a file called COMMANDS.m that contains what is essentially my diary of tests as I moved along. Buried in this are examples of how to run the various functions.

As always, best of luck to you brave souls who are may try to use this mess of software. I enjoy hearing from folks around the world, so please drop me a note and some photos if you get a chance.


May 5, 2023

A few have asked for the code to analyze the bars. Please see the comments section of this site (Re: to Anton) for caveats related to this. Hope it is useful to someone 🙂

6 thoughts on “Epilog – The Code”

  1. Hi, looking through the code I don’t see your AnalyzeClip function — is that still available? I’m not sure how to turn the bars without it. Thanks!

    1. Hi Jim – Sorry about the slow response (4 years!), but I forgot this site was even still up! Not sure you still care, but I just sent the file to your email. I am migrating this site to a new managed server, so perhaps I will give it some love and post all of the code.

      Best, Rich

      1. Hi Rich, could you send me the AnalyzeClip function too, and any other code you have available to share not part of the zip?


  2. Hey Rich! Would you send the code my way too? I’ve been looking into using this to create some high quality instruments and recently found a local CNC-router that I’d love to use, with the output of the ideal under curve as inputs into the `gcode` to cut the bars.

    I’d also be interested in perhaps putting together a hosted version of this code where users could input some params that could be passed into the `m` code. Would love to collaborate on that too if you’re interested.

    1. Hi Alex –

      Please see my comments above to Anton. I did post the code to the “Epilog – The Code” page in case it’s useful to you and others. Cool idea to host an online version of this code – I am kinda swamped right now, so don’t have a lot of time, but it would be fun to help early next year when I have more time.

      Best, Rich

Leave a Reply

Your email address will not be published.