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

Converting to webaudiofont from another library #52

Closed
bbevren opened this issue Jan 29, 2020 · 1 comment
Closed

Converting to webaudiofont from another library #52

bbevren opened this issue Jan 29, 2020 · 1 comment

Comments

@bbevren
Copy link

bbevren commented Jan 29, 2020

Hi, i am using midi-js and want to convert it to webaudiofont...
is there easy way to immigrate? Midi-js has chords like this { "C:maj": [ 60, 64, 67 ], "C:min": [ 60, 63, 67 ], "C:dim": [ 60, 63, 66 ], "C:maj7": [ 60, 64, 67, 71 ], "C:min7": [ 60, 63, 67, 70 ]
while webaudiofont has
var fretsAm = [-1, 0, 2, 2, 1, 0];
var fretsC = [-1, 3, 2, 0, 1, 0];
var fretsE = [ 0, 2, 2, 1, 0, 0];
var fretsG = [ 3, 2, 0, 0, 0, 3];
var fretsDm = [-1,-1, 0, 2, 3, 1];

Thanks

@bbevren bbevren changed the title Converting to webaudiofont from another midilibrary Converting to webaudiofont from another library Jan 29, 2020
@surikov
Copy link
Owner

surikov commented Jan 30, 2020

send notes one by one via queueWaveTable or use queueChord.
read description here https://github.com/surikov/webaudiofont/wiki
listen to examples here https://surikov.github.io/webaudiofont/examples/strum.html

@surikov surikov closed this as completed Jan 30, 2020
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