Comments (5)
Also interested in this. It was surprising to this casual musician that tonal.Key.majorKey('C').chords
didn't include any of the triads I would recognize from, say, a circle of fifths :)
from tonal.
It's now on mode package:
import { Mode } from "tonal";
Mode.triads("major", "C") // => ["C", "Dm", ...]
Maybe Key
could expose a similar function... let me think about it.
from tonal.
Ah yes I see.
I'm thinking about how to easily get the triad chords and their inversions for a given key.
Lets say I have this :
Chord.detect(["E", "G", "C"]) // ["Em#5", "CM/E"]
Then if I have the names of all the triad chords and their inversion names in C in a list, then I can pick the most appropriate chord symbol.
from tonal.
btw, I'd be happy to contribute.
from tonal.
Added. See docs: https://github.com/tonaljs/tonal/tree/main/packages/key#majorkeytonic-string--majorkey
from tonal.
Related Issues (20)
- Chord Progressions only for Major keys HOT 2
- Command line interface HOT 1
- Can't edit the Readme file in order to add a personal project to the list HOT 2
- Chord.get() doesn't work with some results from Chord.detect() HOT 2
- Getting some unexpected note names for some scales HOT 1
- Few questions about setting up the development environment
- Chord.detect unexpected results for simple detection Cmajor HOT 1
- Diminshed chords bug in Progressions HOT 1
- State of the Project HOT 1
- Tonal is not defined HOT 12
- Tonal Browser version does not work since last repo update HOT 1
- memory leak in note function HOT 10
- error when trying to get TimeSignature with lower > 9 HOT 3
- Tonal is not defined HOT 2
- tonaljs/key melodic minor chord HOT 3
- How to transpose note along scale based on interval (across octaves)? HOT 1
- Scale.detect() is producing incorrect results when using a tonic outside the list of provided notes HOT 1
- Chord.get cannot parse `G6add9` HOT 8
- `Scale.scaleNotes` returns an array instead of a pcset. HOT 2
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 tonal.