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

Long note duration creates pause before playing #2

Open
ArthurClemens opened this issue Jun 4, 2011 · 1 comment
Open

Long note duration creates pause before playing #2

ArthurClemens opened this issue Jun 4, 2011 · 1 comment

Comments

@ArthurClemens
Copy link

For instance with:
var note = MidiEvent.createNote({
time: 0,
duration: 1000,
pitch: 60,
channel: 0,
volume: 90
});

I believe this is caused by the function MidiEvent.noteOn that takes the duration parameter:

time: note.duration || duration || 0

instead of setting the start time to 0.

@sergi
Copy link
Owner

sergi commented Jun 6, 2011

Thanks for reporting Arthur, I will be looking into that issue tonight!

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