TomWhitwell / RadioMusic

Virtual Radio module for Eurorack
328 stars 91 forks source link

Station knob not selecting anything before the 12 o'clock position due to Mac OSX hidden files [solved] #189

Closed CallPhysical closed 1 year ago

CallPhysical commented 1 year ago

Summary: Sharing a solution to a problem - RadioMusic 'Station' knob only works across half the range with an audio SD card made on Mac OSX.

I bought a used Radio Music that has been reprogrammed as a Chord Organ, and I reinstalled the Radio Music firmware and downloaded the audio samples from Github. All was well for a week or so, but then I suddenly found that the 'station' knob would not select anything below the 12 o'clock position. Turning the knob from 0 to max just made clicking noises up to about half way, and then from the halfway position it would start to pick up the files.

Here's how I solved it:

Turning on debugging in Filescanner.cpp revealed that the code was reading a bunch of files whose filenames started with a dot and an underscore.

In every folder there was a duplicate of each file beginning with dot underscore. These were hidden files created by Mac OS X. RadioMusic was opening all these hidden files as well as the real audio files. The hidden files were occupying all the slots on the bottom half of the station knob's range. The real files only appeared after the halfway point.

To get rid of them, I opened Terminal, navigated to the SD card, and ran the command 'find . -name ._* -delete' to delete the hidden files.

Now the station knob works correctly across the full range.

I have no idea why the hidden files suddenly appeared after a week of use. But if they come back, at least I know how to get rid of them