add freq support to sampler
This commit is contained in:
parent
8b22c2e04f
commit
df73ce8a60
5 changed files with 43 additions and 8 deletions
|
|
@ -288,10 +288,10 @@ export const webaudioOutput = async (hap, deadline, hapDuration) => {
|
|||
|
||||
if (soundfont) {
|
||||
// is soundfont
|
||||
bufferSource = await globalThis.getFontBufferSource(soundfont, note || n, ac);
|
||||
bufferSource = await globalThis.getFontBufferSource(soundfont, note || n, ac, freq);
|
||||
} else {
|
||||
// is sample from loaded samples(..)
|
||||
bufferSource = await getSampleBufferSource(s, n, note, speed);
|
||||
bufferSource = await getSampleBufferSource(s, n, note, speed, freq);
|
||||
}
|
||||
// asny stuff above took too long?
|
||||
if (ac.currentTime > t) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue