danigb / smplr

A web audio sampler instrument
https://danigb.github.io/smplr/
178 stars 17 forks source link

Can't get soundfont-player to work on Mac (Safari or Chrome) #4

Closed AlanPaine closed 1 year ago

AlanPaine commented 1 year ago

Mode of use:

import { Soundfont } from "smplr";

const context = new AudioContext(); const marimba = new Soundfont(context, { instrument: "marimba" }); marimba.start({ note: 60, velocity: 80 });

I can't find the percussion, and I can't find a way to set the volume function。 https://gleitz.github.io/midi-js-soundfonts/MusyngKite/percussion-ogg.js

AlanPaine commented 1 year ago

image

AlanPaine commented 1 year ago

image

AlanPaine commented 1 year ago

EncodingError: Decoding failed

danigb commented 1 year ago

It should be fixed now in latest version (0.4.3). See here: https://jsfiddle.net/k4Lodqmc/1/

Thanks for reporting