Hi, I’m trying to make a simple plugin that will let me drag-and-drop .PCM files with a non-standard header into Audacity, rather than having to “import raw data” every time. The problem is I don’t know anything about Nyquist, and have no programming skills…
It was suggested I get help here when I opened an issue on the Audacity GitHiub: https://github.com/audacity/audacity/issues/702
What the plugin would need to do is when a .PCM file is dropped into audacity, it would check the first 4 bytes of the file for the header “MSU1” (Hex: “4D 53 55 31”), and if it has that header it imports the file with the following settings:
Encoding: Signed 16-bit PCM
Byte Order: Little-endian
Channels: 2-Channels (Stereo)
Start Offset: 8 bytes
Amount to Import: 100%
Sample Rate: 44100 Hz
On the GitHub it was suggested this would be possible with the “S-READ” command.
Any help with this would be appreciated, I don’t even know where to start…