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

add root mode for voicings #887

Merged
merged 1 commit into from Jan 4, 2024
Merged

add root mode for voicings #887

merged 1 commit into from Jan 4, 2024

Conversation

felixroos
Copy link
Collaborator

it is now much easier to play voicings in root position:

n("0*[1 | 2]")
  .chord("<C F G C>")
  .mode("root:D2") // === .mode("root").anchor("D2")
  .voicing()
  .s("gm_acoustic_bass")

before, a similar thing could only be achieved with:

let chords = "<C F G C>";
n("0*[1 | 2]")
  .chord(chords)
  .mode("above")
  .anchor(chords.rootNotes(2))
  .voicing()
  .s("gm_acoustic_bass")

this is not only very complicated but also has the limitation of the rootNotes function, where each root just gets the octave 2 so c is always the lowest note and b is always the highest, whereas the new way will pick the root nearest to the anchor.

additionally, anchor now also understands numbers, so automating it is much easier:

chord("<Dm9 Gm11>/2")
  .segment("<2 [4 | 8]>")
  .clip(.5).release(.2)
  .dict('ireal')
  .anchor(saw.range(70,90).slow(8))
  .voicing()
  .s("square:4")

+ allow numbers as anchor
@felixroos felixroos merged commit f37652e into main Jan 4, 2024
2 checks passed
@felixroos felixroos deleted the root-voicings branch January 4, 2024 10:21
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

Successfully merging this pull request may close these issues.

None yet

1 participant