Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mckib2/inplacetuning
Just intonation -- but better.
https://github.com/mckib2/inplacetuning
Last synced: 20 days ago
JSON representation
Just intonation -- but better.
- Host: GitHub
- URL: https://github.com/mckib2/inplacetuning
- Owner: mckib2
- License: gpl-3.0
- Created: 2019-10-23T20:07:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T02:37:19.000Z (over 4 years ago)
- Last Synced: 2024-10-31T10:12:07.525Z (2 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
In-place Tuning
===============The idea is to optimize frequencies of all currently sounding notes
to have just intonation-like ratios.The process involves:
- Finding pairwise relationships between currently sounding notes
- Choosing nominal starting frequencies, e.g., A=440Hz, A#=466.16, and so on
- Noticing that the nominal frequencies will in general not satisfy the desired ratios
- Modifying the frequencies as little as possible to achieve the desired ratiosThis idea was inspired by videos made by Adam Neely [1]_ and work done Polansky et al [2]_.
A next step would be a moving window optimization which would allow for "just in time"
tuning for live electronic music.The current state of the project is not robust. This is meant as a proof of concept,
not as a "ready for production" suite. Some simple things will fail because of how ratios
and notes are defined under the hood. Any pull request is welcome to help fix it, but as
this is simply a one and done hobby project, I'm going to officially leave it dormant for
now.Examples
========Information is best obtained from the `inplacetuning` function's docstring.
A basic example is provided and can be run like this on Unix-like systems
with Python 3:.. code:: python
python -m examples.basic
It will produce a WAV file of a sum of sines of the unoptimized just intonation
frequencies followed by the in-place intonation optimized frequencies for
comparison.References
==========
.. [1] Adam Neely's YouTube Channel https://www.youtube.com/user/havic5/videos
.. [2] Polansky, Larry, et al. "A mathematical model for optimal tuning systems."
Perspectives of new music (2009): 69-110.