-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sfz~ fix load scalastring #1684
Comments
have you tried adding an additional backslash character before the also what does 'fails somehow' mean? where exactly does it fail? edit: oh I see, you try to load it and it fails it would also help if you point to the original file you're working from on github |
|
didnt see why it'd work and it didn't :/ |
@porres yeah idk thought it might be some weird escaping thing the file format expected or something. |
by the way "weird\n4\n155\n555\n777\n1111" also works (without ending with "\n") |
does it work with "weird\n4\n155.0\n555.0\n777.0\n1111.0"? |
good question, it actually works even better! |
sorry I'm not on my dev computer rn, what message do you test it with that it fails with? |
It should maybe, but it doesn't, the way I specify scales in cents is that it always starts with "0" cents and this firs one needs to be ignored. Anyway, it's intentional |
i think i see the issue now |
the number of steps in the scale was 1 too many higher :) thanks! |
Should you -1 from ac? |
exactly, that fixed it :) |
There's code copied from ceammc's sfizz~ that doesn't work. All we need is a string into a built in sfizz_load_scala_string function. The string is tuning name, number of steps and steps in cents in this format "weird\n4\n155\n555\n777\n1111\n"
So I am trying to build this string from a list of intervals in cents and it is failing, but trying the string above works! The code from ceammc's sfizz~ uses this structure below and if I print the string in the code I do get something that looks exactly like a string that gets accepted, but trying to build this string this way fails somehow (while it must work for ceammc maybe, haven't tested)
see https://github.com/porres/pd-else/blob/master/sfizz~/sfizz_puredata.c#L107
The text was updated successfully, but these errors were encountered: