Skip to content
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

Tutorials or cookbooks ? #108

Open
lud opened this issue Aug 15, 2019 · 3 comments
Open

Tutorials or cookbooks ? #108

lud opened this issue Aug 15, 2019 · 3 comments

Comments

@lud
Copy link

lud commented Aug 15, 2019

Hello,

I am completely lost, I find some examples but I cannot get how I am supposed to use the library.

I would like to pick a root note (say 'G') and then a scale/mode, say ('aeolian'), and finally retrieve all notes in 'G aeolian' and get the list of all chords compatibles with this scale.

Are there guides to explain how to do that ?

Thank you.

@lud lud changed the title Totorials or cookbooks ? Tutorials or cookbooks ? Aug 18, 2019
@danigb
Copy link
Collaborator

danigb commented Aug 19, 2019

Hi,

You're right. The documentation is not clear nor correct (I'll fix it soon).

Anyway, you'll need to use the @tonaljs/scale module. The documentation lives in the repository: https://github.com/tonaljs/tonal/tree/master/packages/scale

To obtain the scale properties, use the scale function:

import { scale } from "@tonaljs/scale"
scale("G aeolian").notes // => ["G", "A", "Bb", ... ]

To obtain the chords, use the scaleChords function from the same package:

import { scaleChords } from "@tonaljs/scale"
scaleChords("aeolian")

Hope it helps!

@lud
Copy link
Author

lud commented Aug 19, 2019

Thank you, I will look into it :)

@lud lud closed this as completed Aug 19, 2019
@danigb
Copy link
Collaborator

danigb commented Aug 19, 2019

Hi,

Great! Don't hesitate to ask if you have more problems. I'll reopen the issue and close it when I fix the documentation.

EDIT: Suggestions on how to improve the module or the documentation are welcomed

@danigb danigb reopened this Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants