scale-workshop icon indicating copy to clipboard operation
scale-workshop copied to clipboard

Support AnaMark TUN v0/v1 import

Open SeanArchibald opened this issue 4 years ago • 2 comments

Much of the work has already been done but is unfinished and commented out.

If anybody has v0/v1 files for testing, please reply here with files attached

SeanArchibald avatar Oct 30 '19 11:10 SeanArchibald

hi, i'm the one who contacted you about this on your site, here are some files (don't know if v0 or v1), from Omnisphere and from other sources: Microtonal.zip 00-c.zip. In the meantime, do you know if there's a archive somewhere of more recent tun files? All the ones i have seem to be either v0 or v1. Thanks a lot!

Ch4rli3G0rd0n avatar Oct 30 '19 13:10 Ch4rli3G0rd0n

Here's why v0/v1 import is tricky... The tun file contains no scale (intervals) data, just 128 tuned pitches.

The simplest way of importing that data is to set the base note to 0, base frequency to the first pitch, then add all the next 127 pitches as intervals in the scale. This will look like a mess but it's better than nothing.

What's better is to introduce some logic which tries to find a pattern/repeat in those 128 pitches and intelligently use that to work out the original intervals in the scale. But as we know, some tunings don't have any easily discoverable pattern, so the logic should fall back to the above method of importing all 128 pitches if it needs to.

This is quite low on my own list of priorities but I welcome a PR if anybody is really desperate for v0/v1 tun import

SeanArchibald avatar Oct 07 '21 11:10 SeanArchibald