xenharmonic-devs / scale-workshop

Design and visualize microtonal scales and play them in your web browser. Export your scales for use with VST instruments. Convert Scala files to various tuning formats.
MIT License
84 stars 13 forks source link

Import Anamark TUN v1 files #368

Open frostburn opened 1 year ago

frostburn commented 1 year ago

Load and display a full 128 note scale.

See #363 for the discovery of this issue.

ededs commented 7 months ago

Anything? Im having the same issue

frostburn commented 7 months ago

Here's a potential lead to get started on this:

frostburnYesterday at 9:06 AM

Is your code open source? May we adap it for Scale Workshop?

- xeno [i] ndex -Today at 2:42 AM

uh sure but it's in supercollider and I'm a console cowboy who shoots from the hip

(
// Reads .tun file and probably maybe returns array of cent values up to period 1200c.
~readTUN = {|file="/home/user/Downloads/11-tone_Scale.tun"|
    var f = File.open(file, "r");
    var arr = f.readAllString.split($]).last.split($=).collect{|i| i.asFloat};
    f.close;
    arr[arr[1..].indexOfGreaterThan(-0.0000000001)+2..arr[1..].indexOfGreaterThan(1200)];
}
)