How-To: Sorting project files alphabetically


#1

Hey friends.

I’ve always wondered why the Pyramid can’t sort my projects alphabetically.
It’s what I would assume standard list behaviour in a device in 2018.

Now that I did some thinking why Pyramid behaves the way it does I found a solution.
Pyramid is seeing the SD card in it’s raw form, meaning it’s seeing it just on the lower FAT level, it’s not like Mac Finder or File Explorer or however it’s called on PC.

Long story short, here’s the fix:
just use any old FAT sorting tool on your Mac or PC.
There’s quite a few, I went with FATSort for Mac. For PC, you will have to find some way for yourself as I don’t have one.

Get FATSort for Mac here: https://fatsort.sourceforge.io/

Once you’ve compiled it you have a working FATSort build. Mind that you need Xcode on the Mac.
If you don’t have Xcode you could also try downloading this precompiled binary and see if it works for you.
Should work on any Intel Mac. Then use Terminal to sort your SD card.

Plug in your SD card and figure out the Volume Name. My SD card is named PYRASD, so the Volume Name is /Volumes/PYRASD. If you’re new to Terminal be careful, you could easily sort the wrong harddisk and screw things up.

In a Terminal window do the following:

  • use diskutil to find out the Device Node, mine is called /dev/disk2s1
    diskutil info /Volumes/PYRASD | grep "Device Node:"
  • use diskutil to Unmount (but not eject) the SD card using the Volume Name
    diskutil unmount /Volumes/PYRASD
  • change to the directory that holds fatsort and use it to sort the SD card using the Device Node.
    fatsort /dev/disk2s1
  • . If you get a “Permission denied” try calling fatsort this way:
    sudo fatsort /dev/disk2s1
  • use diskutil to Eject the SD card using the Device Node
    diskutil eject /dev/disk2s1
  • You can now remove the SD card and put it in the Pyramid.

This effectively changed my project order as you can see:

BEFORE

AFTER

I remember bringing up that sorting issue on the old forums and I’m amazed that nobody ever mentioned that all this might be due to the FAT file system. Maybe @squarpadmin can implement an easy way to do all of this directly on the Pyramid? Maybe have a look at the FATSort binaries and see how it works, it’s all open source.

Ok, enough nerd talk, back to music making!


#2

Excellent sleuthing – thank you.

Ideally this sorting would be re-applied automatically by the Pyramid after each project save operation I guess, when it pauses anyway. And each boot for the def files. :v:

Here’s another guide for Mac (or Linux).


#3

Yes, that would be nice, but might collide with putting out a steady clock while loading/saving. Either way, this is a working solution for me as it is much easier renaming and sorting on the Mac anyways. But it would be nice to have a “sort projects” in the system settings. Finally, I can have my “_init” patch always on top. Also nice for actual live sets, so I can name them 01_name, 02_name, 03_name etc.


#4

Hey, just wanted everyone to know that this is also how the Instrument Defs are sorted - if you’re on windows, you can use http://www.anerty.net/software/file/DriveSort/, works a treat!

Thank you so much for discovering this :smiley:


#5

It is today possible to have it systematically via setting on pyramid ?


#6

No, I wish it was. Maybe in the future, @squarpadmin?


#7

No update yet :confused: