Comments (3)
Hi @edellaq
Sorry for the delay. Circular shift of pitch class sets are implemented in pcset package:
tonal.pcset.modes('c d e f g a b');
However, sometimes it has problems properly naming the notes. Take a look to https://github.com/danigb/tonal/blob/c7bf9572e5ce42511a6a64ff830fd23e2f96c92b/packages/core/pcset/test/pcset.test.js#L25
Also, you can get the name of the modes using the key module:
tonal.key.names();
I'm curious about the scale transformation and parallel modes. Can you write a little bit more about it?
I hope it helps.
from tonal.
Hi @danigb, my concept is:
having a major scale note array, simply returning the array starting form the n-th note, by shifting it circularly, returns the new modals scale...
So that e.g. a c major scale [c,d,e,f,g,a,b], shifted by 3 steps gives a F lydian scale [f,g,a,b,c,d,e]
without altering any note.
A bit more complicated is when you want a parallel mode, having the same root note.
starting from a C major scale [c,d,e,f,g,a,b], if you want a C lydian [c,d,e,f#,g,a,b] you'll have to raise only the 4th grade (f to f#)
So I was thinking to a function using circular shifting to obtain new a modal scale starting from any current one, and another function using some kind of "transformation matrix" for scales, that alters only the degrees needed to obtain the new parallel mode (= having the same root)
Each returned object would be a regular "scale" object, to be used seamlessly in any computation...
So for example you can have by shifting:
Gmixolydian=Cmajor.mode(5)
and then by 'parallelizing':
Gdorian=Gmixolydian('toDorian')
that simply flattens the 3rd degree of the mixolydian scale...
etc..
from tonal.
I think this is implemented in tonal-key
. Please feel free to reopen if not.
from tonal.
Related Issues (20)
- error when trying to get TimeSignature with lower > 9 HOT 3
- Triads in key HOT 5
- 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
- Cannot import into React Native Expo app HOT 1
- Can create localization? HOT 2
- Importing Mode from mode module call back error in browser environment HOT 1
- Natural notes (sign) HOT 2
- Missing import "Named" when using with Angular HOT 2
- Chord.get throws exception on some strings
- Exact versions HOT 6
- Broken link in README. `pitch-notation-abc` is now `abc-notation`
- Chord to leadsheet notation
- Chord detection inconsistency HOT 2
- Edge case with Interval, possibly note octave designation HOT 1
- Scale.get suggestions 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 tonal.