Wilsonic App Scala Error
Hi, I am having an issue importing a .scl file into scala. I exported my scale as a Scala (.scl) file from the Wilsonic app, but once i try to import it into scala it tells me that there is an error in the file format. Can anyone please indicate what the problem might be? I can't seem to attach the .scl file here but i can send it to you.
Thank you
Since scala's scl is a textual format, you can open it with any text editor, for example notepad on Windows. If you could copy and paste the contents of your scl file, then it would greatly help in finding the issue. Have you tried importing that same scl file in a different program to see, if that also fails?
Possible encoding issue, as the exported files default to Windows style while Wilsonic is iOS.
@synthdad please try this. In Scale Workshop go to General settings > Line endings format > Unix (Mac/Linux) > try to export your scl file again. Does that get the scl file working in Wilsonic?
Hey guys,
So just to clarify, i'm trying to export out from Wilsonic and into Scala. Scala cannot open the .scl file for some reason. I have imported the file into the scale workshop and here is the scale data:
! The 1/1 is explicitly added by the Scala tuning file format
! For Centaur subsets whose first term is not 1/1 we normalize
! 0.000000 ==> (scaleDegree: 0, CentaurMicrotone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0/scaleDegree: 0, CentaurMicrotone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0) ==> Microtone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0
! 203.910005 ==> (scaleDegree: 2, CentaurMicrotone: MicrotoneRational:9/8, shortDesc: 9/8, f:1.125, P:0.1699250042438507/scaleDegree: 0, CentaurMicrotone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0) ==> Microtone: MicrotoneRational:9/8, shortDesc: 9/8, f:1.125, P:0.1699250042438507
! 266.870838 ==> (scaleDegree: 3, CentaurMicrotone: MicrotoneRational:7/6, shortDesc: 7/6, f:1.166666666666667, P:0.2223923653364182/scaleDegree: 0, CentaurMicrotone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0) ==> Microtone: MicrotoneRational:7/6, shortDesc: 7/6, f:1.166666666666667, P:0.2223923653364182
! 498.045051 ==> (scaleDegree: 5, CentaurMicrotone: MicrotoneRational:4/3, shortDesc: 4/3, f:1.333333333333333, P:0.4150375425815582/scaleDegree: 0, CentaurMicrotone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0) ==> Microtone: MicrotoneRational:4/3, shortDesc: 4/3, f:1.333333333333333, P:0.4150375425815582
! 701.954985 ==> (scaleDegree: 7, CentaurMicrotone: MicrotoneRational:3/2, shortDesc: 3/2, f:1.5, P:0.5849624872207642/scaleDegree: 0, CentaurMicrotone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0) ==> Microtone: MicrotoneRational:3/2, shortDesc: 3/2, f:1.5, P:0.5849624872207642
! 764.915943 ==> (scaleDegree: 8, CentaurMicrotone: MicrotoneRational:14/9, shortDesc: 14/9, f:1.555555555555556, P:0.63742995262146/scaleDegree: 0, CentaurMicrotone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0) ==> Microtone: MicrotoneRational:14/9, shortDesc: 14/9, f:1.555555555555556, P:0.63742995262146
! 968.825912 ==> (scaleDegree: 10, CentaurMicrotone: MicrotoneRational:7/4, shortDesc: 7/4, f:1.75, P:0.8073549270629883/scaleDegree: 0, CentaurMicrotone: MicrotoneRational:1/1, shortDesc: 1/1, f:1, P:0) ==> Microtone: MicrotoneRational:7/4, shortDesc: 7/4, f:1.75, P:0.8073549270629883
! Please see the Scala archives at: http://www.huygens-fokker.org/docs/scalesdir.txt
Hmm, something's definitely weird about that!
First of all, I don't think this should be a Scale Workshop issue. You say you're exporting this from Wilsonic and trying to import into Scala, and Scale Workshop isn't a part of this equation. But I'm still happy to help you with this:
As per the Scala format guidelines, lines beginning with an exclamation mark "!" are regarding as comments and ignored. In this file you posted here, every line begins with "!", so it's just one big comment. I don't think this is actually intended to be a scala file! :P
I haven't exported from Wilsonic before so I'm not sure about the options available, but is it possible you're not using the proper scala file export function? If you are doing it the proper way, then there's definitely an issue and you should submit a bug report on the App Store.
You can recreate that as scala file though if you want to get into using it. Check out that Scala format guideline link and see if you can make one in a text editor! Don't forget you can also use the "MicrotoneRational" value as an interval ;)
I think this issue should be closed, but please feel free to reach out to some microtonal communities on Facebook or IRC for some more help! A bunch of info can be found here: https://en.xen.wiki/w/Main_Page
Thx @vsicurella
The reason I used scale workshop was to attempt to open the .scl file that I exported from Wilsonic.
Scala would not even open the file at all. I contacted Sevish via email about my problem and he told me to post about it here and I could receive some help.
I’m going to try to contact Wilsonic and check the export settings on the app. However I’m not sure why the contents of the .scl file ended up in this format.
I’m also very new to using Scala, but not microtonal music. I really just want to get this scale into Scala so that I can import it into my Rhodes Chroma and get on with the piece of music I’m trying to compose already!
Ah, sounds really fun :) do you think you can rewrite a scala file based off of the one you have? It's good practice, but if not, I could do that for you.
@synthdad I've wrapped your code in ``` blocks to preserve formatting. Line endings are indeed in Windows style. Apparently - as @vsicurella mentioned - lines beginning with ! characters are regarded as comments.
The scala equivalent of your file would be:
Tuning name
6 ! this is how many notes there are in the scale, 0.00 is implicitly added
! empty line for cosmetic reasons
203.910005
266.870838
498.045051
701.954985
764.915943
968.825912
Thx guys. I would honestly really appreciate that if you felt like doing it @vsicurella ! It would allow me to reverse engineer the scala file based on how you arranged it so that I can do it myself in the future. I will return the favor somehow, maybe I can send you a video of the piece played live!
Are there some specifications out there for Wilsonic's format? If so, we can add it relatively easily. Otherwise we might need a good few example tunings to see the pattern and to see any potential edge cases.
FYI, I had an "Error in file format" of my .scl exported from the web app when I tried importing it into Scala. On Windows 10 here. I solved the problem by editing the .scl file to delete the comment with the URL to reproduce the tuning. That URL is huge with all sorts of escaped characters in the query params, and perhaps one or some of those mess with Scala's comment or line break recognition. Since the web app can import .scl files, I suggest we simply delete that comment from the export.