Comments (9)
Hi @VictorEijkhout. Thanks for your feedback!
Regarding your question
- You can list all parameters of the
rank2
command withtune xxx rank2 --help
ortune xxx help rank2
. I will add this hint to theREADME.md
documentation. - The first parameter of the
rank2
command is the "interesting" interval (first generator), let's say a just fifth, i.e.1.5
or3/2
. - The second parameter is the number of forward iterations of the interesting interval excluding the unison. So, if the second parameter is
3
, you will add the intervals 3/2, 9/4=(3/2)^2 and 27/8=(3/2)^3 - all mod the period interval (an octave by default) - The third parameter is optional and declares the number of backward iterations of the interesting interval, e.g. (2/3) = (3/2)^-1, (4/9)=(3/2)^-2 and so on
- If you do no want the octave to be the period (second generator) you can override this value via the
-p my-interval
option - To create a Scala tuning file use the
scl
command. E.g.tune scl rank2 1.5 3 3
will print a rank2 tuning file to the terminal. If you want to conveniently write anytune
output to a file use the--of my-file.scl
option. In total:tune --of my-file.scl scl rank2 1.5 3 3
. - The
scale
command does not generate a tuning file but evaluates the provided scale expression for all MIDI numbers. To make this command work you need to specify a scale root and a reference pitch.tune scale --help
ortune help scale
will explain the parameters of the command.
To improve the documentation I would need to know why the current documentation does not work yet. Could you explain where you looked for help? Should the documentation be more in the README.md
or in the --help
part of the command line interface? Also, which tuning file format do you need? tune
currently only has support for the Scala format. I did not evaluate the tun format yet since it appears to be proprietary and less flexible.
from tune.
Thanks for getting back to me. The --of
option was not int he documentation that I found https://crates.io/crates/tune-cli
.
I'm trying to generate "just intonation" tunings, and for that I think I understand the documentation.
In order to understand the rank2 tunings I think I'd better first understand how quarter-comma meantone and such precisely work.
from tune.
Your documentation gives a command
scl -n "Just intonation" steps 9/8 5/4 4/3 3/2 5/3 15/8 2
But this is incomplete. Please only give working examples.
from tune.
The obvious fix
tune scl -n "Just intonation" steps 9/8 5/4 4/3 3/2 5/3 15/8 2
Error: The command failed / error: Found argument '-n' which wasn't expected, or isn't valid in this context
from tune.
Your documentation gives a command
scl -n "Just intonation" steps 9/8 5/4 4/3 3/2 5/3 15/8 2
But this is incomplete. Please only give working examples.
Thanks for pointing that out! It should be scl --name "Just intonation" steps 9/8 5/4 4/3 3/2 5/3 15/8 2
. I changed the parameter in the past. 😃
from tune.
Is scl
a command by itself? I didn't get it from the cask install. After a bunch of experiments I found:
tune --of purec.scl scale 60 steps 9/8 5/4 4/3 3/2 5/3 15/8 2
from tune.
How can I give both a name and a reference tone?
from tune.
Is
scl
a command by itself? I didn't get it from the cask install. After a bunch of experiments I found:
scl
is a subcommand to be used as tune scl ...
. scale
is a different subcommand.
How can I give both a name and a reference tone?
You can't. Let me explain:
tune scl
creates an SCL file. SCL scales can have a name but they do not contain a reference note. I think the command you want isTo define a reference note, you need to create a separate KBM file, e.g.tune --of purec.scl scl --name "My cool scale" steps 9/8 5/4 4/3 3/2 5/3 15/8 2
Usually uploading an SCL file to your synth is sufficient but if you don't specify a KBM file the synth will pick the reference note for you.tune --of purec.kbm kbm 60
tune scale
is a different command. It will evaluate the pitches for all MIDI notes and write them as JSON s.t. they can be inspected. I don't know whether this is very good idea but it was the best I had so far. The idea is to pipe the JSON output using the pipe operator|
to another call to tune, e.g.tune dump
,tune diff
ortune mts from-json
. Providing a name at this location is not meaningful.
from tune.
@VictorEijkhout I created #31 to address your feedback. What do you think?
from tune.
Related Issues (20)
- Add rotary effect control over MIDI HOT 1
- Audio-in HOT 1
- Add modular effects chain HOT 1
- Add live interactions with waveforms HOT 1
- Add ANSI Keyboard support HOT 4
- Pre-render sin function to array
- Use f32 instead of f64 in modular synth chain HOT 2
- Library vision (tracking issue)
- Named waveform buffers
- Split LfSource into a spec and state object HOT 1
- Add benchmarks HOT 1
- Remove DC offset / Implement DC filter
- Microwave requires Vulkan-compatible graphics HOT 7
- StreamConfigNotSupported error on Windows HOT 2
- MIDI in leaves GUI artefacts HOT 8
- Error on build HOT 2
- Add adaptive tuning
- ItemOutOfRange error generated on import. HOT 6
- Auto-colors for on-screen keyboard and Lumatone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tune.