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

Is it possible to add a sustain to some notes? #60

Closed
ProgrammingLife opened this issue Feb 4, 2018 · 1 comment
Closed

Is it possible to add a sustain to some notes? #60

ProgrammingLife opened this issue Feb 4, 2018 · 1 comment

Comments

@ProgrammingLife
Copy link

Is it possible to add a sustain to some notes?

@walmik
Copy link
Collaborator

walmik commented Feb 4, 2018

Yes a simple sustain can be obtained by using _ (the underscore symbol), something like this:

var scribble = require('scribbletune');

var clip = scribble.clip({
	notes: 'c4 e4',
	pattern: 'xx______'
});

scribble.midi(clip);

This will sustain the e4 note:
sustain

@walmik walmik closed this as completed Feb 7, 2018
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