0110.be logo

Articles Tagged 'Mac OS X'

~ A user-space macOS driver for the M-Audio FastTrack Pro

M-Audio FastTrack Pro USB audio interface The M-Audio FastTrack Pro is an old but good USB audio interface. On macOS it works out of the box, but only in a reduced mode: Apple’s built-in USB audio driver limits it to 16-bit audio, plays back only at 44.1 kHz and ignores the S/PDIF input. On Linux, the full device is available. To keep the interface useful on a Mac, I instructed Claude to write a user-space macOS driver for the FastTrack Pro. Compared with Apple’s driver, it offers:

Installation requires macOS 15 and the Xcode Command Line Tools:

1
2
3
make            # build
make install    # install and start
make uninstall  # remove, the device goes back to Apple's driver

This effort fits a recent trend of custom drivers and firmware for audio gear. Now that coding is more accessible, vendors see more value in making their gear hackable instead of locking it down. Allowing custom firmware was, of course, always a good idea, but now a much larger group of enthusiasts can actually write it. For example, Akai is opening up the MPC Sample for custom firmware, and Behringer has published the source code of its upcoming KICK sampler and IGNITE sequencer on GitHub. I see this as a good side effect of LLMs: custom drivers extend the life of existing hardware, and because writing firmware is now within reach of many more people, vendors are pushed towards hackable gear.

Check out the FastTrack Pro driver on GitHub. Feedback, bug reports, and pull requests are very welcome.


~ Oneliner to Install ssh-copy-id on Mac OS X

ssh-copy-id is a practical bash script, installed by default on Ubuntu. The script is used to distribute public keys. The following oneliner makes it available on Mac OS X:

```ruby\ sudo bash < <( curl —silent http://0110.be[install-ssh-copy-id.bash] )\ ```\ This oneliner does three things:

  1. It copies ssh-copy-id from this website to /bin/ssh-copy-id.

  2. It makes sure that ssh-copy-id is executable, using chmod.

  3. There is no three

The install procedure needs superuser rights because it writes in the /bin folder. Executing scripts from untrusted sources with superuser rights is actually really, really, extremely dangerous. But in this case it is rather innocent.

The ssh-copy-id script is the one provided with Ubuntu and Debian, I assume it is GPL’ed. I have not modified it for Mac OS X but it seems to behave as expected. I have only tested the install script and behavior on 10.6.5, YMMV (Your Mileage May Vary).