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

Create a custom chord #54

Closed
rhelsing opened this issue Sep 25, 2017 · 1 comment
Closed

Create a custom chord #54

rhelsing opened this issue Sep 25, 2017 · 1 comment

Comments

@rhelsing
Copy link

I would like to be able to create a chord by supplying an array of notes as a parameter. Is that possible with the current version?

If not, maybe something like the following? ...

var clip = scribble.clip({
    notes: [scribble.chord(['f2', 'c4', 'e4', 'g4']), scribble.chord(['c2', 'e4', 'g4', 'b4']), scribble.chord(['a2', 'c4', 'e4', 'g4'])],
    pattern: 'x_x_x_--'.repeat(8)
});
@rhelsing
Copy link
Author

looks like this is possible like this:

var clip = scribble.clip({
  // Use chord names directly in the notes array
  notes: ['CMaj', 'FMaj7', 'GMaj', ['e4', 'c3', 'e5']],
  pattern: 'x___'.repeat(4)
});

but I did not see it in the documentation.

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

1 participant