Categories
Uncategorized

Scripting Illustrator

I never thought I would write Javascript for Adobe Illustrator but here we are. A script to rename artboards sequentially.

You can grab the script Rename Artboards.jsx from gist.github.com because it’s simply one file and I didn’t feel like making an official repository for it.

Why? I found that at work I was renaming artboards in Illustrator so they’d have sequential file names/numbers when exporting them as separate PNG images. I got sick of doing it manually and found a solution. Since Illustrator is from Adobe I doubted (at first) that it would be easily scriptable, but hey… it is! Well, with Javascript. Meh. Anyway, it was easy enough to find some sample code that was close enough to what I needed.

I started by looking for a solution. This was my first result: How (to) batch rename artboards in Adobe illustrator?

I assumed Illustrator would have some sort of floating script palette, but no… So then I found: How to keep Illustrator Scripts handy?

That page points to Script Panel 2 and Adobe CC Scripts Panel. I’ve tried them both. I think I prefer the second, but both seem to work fine.

This seems pretty handy, so the next time I need to automate some task in Illustrator I’ll have to dig in and see if it can be solved with a script.

Categories
Uncategorized

Pocket Operator Album

Hey, I’m recording another album. You may know I recorded three albums as part of the RPM Challenge back between 2008 and 2011, and before that I did other recording, playing, performing, and touring. So this isn’t totally new…

What is new is that I am recording all the “songs” using only Pocket Operators. Those tiny little synths that make bleeps and bloops. I started acquiring a collection of them in the summer of 2021 and at this point I’ve got four of them, and I use three or four in song. Also, all of these songs are short! Nearly all of them are under one minute in length.

I should point out that I am far from the first person to produce a Pocket Operator album. Others have done it, though that really wasn’t the inspiration for this. Basically, someone asked for it! Splorp is (partly) to blame. Yeah, seriously.

Anyway, head on over to peteprodoehl.bandcamp.com/album/po-sounds and grab it if you want it. It’s a “name your price” thing, so it can be free. If you pay for it I’ll probably just use the money to buy more Pocket Operators. Oh, I also plan to keep going, so more songs will be added over time.

Oh, if you prefer these songs with some (uhhh) visuals, you can check out the YouTube Playlist which has some older material not included on the album. (The album versions pull the audio from the video and just do a quick cleanup to make sure the levels are good, but otherwise there is no editing.)

Too lazy to click those links? Just use the player below. If you want to use these songs for anything let me know. There’s a 99% chance I’d be cool with it. If you want me to record something else for you, get in touch with me and we can discuss it.

(Note: This is not a physical album and I’m sure it will not be one in the future. The photo at the top is just a silly graphic I made.)

Categories
Uncategorized

S3 Game Controller

Here’s another custom controller that was requested by someone. They were interested in the S1 Rotary Controller but wanted three knobs, and wanted potentiometers instead of encoders. No problem!

I should note that I rushed this one out the door and totally forgot to take a photo of it. I’ve included some renders and sketches below to take the place of photos.

The main edit to the S1 was to widen the device to accommodate three knobs instead of one. The sketch above was used determine the spacing and then this file was used to laser cut the acrylic top surface.

Here’s a photo of the device in use that I got from the customer. It’s attached to his larger game controller with some 3M double sided tape and it controls the X,Y,Z axes for the flight simulation game IL-2 Sturmovik.

I may build another one just so I can get more photos. In the meanwhile, enjoy the renders below.

Categories
Uncategorized

Four Button MIDI Box

A musician got in touch with me about building a custom MIDI controller. This one works in conjunction with a Roland TM-2 Trigger Module. The way the TM-2 works is that it has two physical trigger buttons, but you can use two more by pressing a “shift” button so you get a total of four buttons. He said this worked fine for recording, but was not great for a live setup, so wanted a device with four physical buttons to press. He was looking for something about 2″ by 4″ in size.

I asked if he wanted all four buttons in a row, or two rows of two buttons, and we went with the latter. He also wanted buttons closer to 20mm rather than 30mm in diameter so that meant standard arcade style buttons would not work. I found some nice (metal) push buttons thar were solid so we went with those.

Here’s the 2D sketch I provided to the client. These sketches also help me determine the dimensions of the final unit. I basically create these sketches at actual size so I can determine spacing of all of the components. I also use the sketches to get approval from the client.

Like the Handheld 5 Button MIDI Controller we decided to go with a 3D printed enclosure rather than track down an existing metal or plastic enclosure that was the required dimensions.

The one difference from the 2D sketch is that the power LED got moved to the opposite corner just to allow more spacing between components. Speaking of spacing, I do wish I had made this enclosure just a wee bit larger, as stuffing all of the components and wires in was a bit tricky.

Somehow I managed to not take a photo of the power plugged in, but it goes into the smaller socket to the right of the MIDI jack. The LED turns on when power is plugged in.

This was another fun project and I learned a few things in the process. Hopefully the group using this (who makes music described as a “euphoric collision of post-punk, trance, and deconstructed opera”) finds this controller to be useful in their live shows.

Categories
Uncategorized

Handheld 5 Button MIDI Controller

Here’s another recent build. A five button handheld MIDI controller. This one is not USB MIDI but has a 5 pin DIN MIDI connector to go directly to an instrument. (This one will control a BOSS RC-505 Looper.) A musician got in touch with me about this, asking for a “small detonator style device” and that’s what we designed and built.

I’ll do a quick walk-through of the process for this project with some notes and illustrations.

This was the sketch the client sent, so I could get some idea of what they had in mind. My first question was about the dimensions of the unit, since finding an enclosure would probably be the largest challenge for the project.

Here’s the second client sketch showing dimensions. (You’ll also notice six buttons, though we knocked it down to just five for this iteration.) With the dimensions in hand I started looking for enclosures. Metal would have been preferable, but plastic would be acceptable.

Sadly I did not find any good enclosures the desired size, so I suggested using a 3D printed enclosure so we could make it custom and the exact size we needed. The client agreed to that and I started designing.

Here’s my first design sketch. It’s got some transparency because I often want to see how things fit inside the enclosure to ensure we’ve got enough space for everything. This one shows a rocker style power switch on the top.

A quick change moving the power switch to the side of the unit instead of the top, per the client’s request. This increased the length of the unit a bit.

Here’s the final sketch for the device. We switched to a power button with a built-in LED so it could also serve as a power indicator since this is battery powered. This sketch got final approval which meant I could start designing the 3D model and putting together the electronics.

Since durability was important the walls for this enclosure are 4mm wide and the infill is at 30%. The print came out great. I printed it on an upgraded Creality Ender 3 with black Hatchbox filament.

I was really pleased with how this came out. Rather than design a battery compartment I used an off-the-shelf battery holder for an electric guitar, which I think worked well.

This project took a lot of time, but it was a fun challenge, and it feels good to be able to help a musician expand their performance capabilities.