paulrosen / abcjs

javascript for rendering abc music notation
Other
1.92k stars 283 forks source link

Cannot read properties of undefined (reading 'CreateSynth') #740

Closed Paquinho1 closed 2 years ago

Paquinho1 commented 2 years ago

Hello, i'm trying to play some basic chord progression using the provided synthetizer example, but I keep getting this error "Cannot read properties of undefined (reading 'CreateSynth')"

I even copied the basic example on the page without success.

Maybe the CreateSynth() method is outdated or I'm missing something?

Thanks in advance

image

paulrosen commented 2 years ago

Yes, that is a really old version of the library. Try this: https://cdn.jsdelivr.net/npm/abcjs@6.0.0-beta.35/dist/abcjs-basic-min.js

Paquinho1 commented 2 years ago

Thanks for your answer, now apparently it's working but I get no sound because the online library provided it's down on the net. I tried with my own piano soundfont but it doesnt work.

paulrosen commented 2 years ago

Was that because of the AWS outage? Because it works for me now. For your own soundfont, it needs to be in the same format that the default one is.

paulrosen commented 2 years ago

Let me know if this is still a problem