feross / feross/timidity

Tempo and pitch on Windows/Android

Open
#14 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
403
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Some platforms/systems use a sampleRate of 48000. This results in faster, higher pitched play back. The fix is to use the `sampleRate` from the audio context:

```javascript
_loadSong(midiBuf) {
const optsPtr = this._lib._mid_alloc_options(
this._audioContext.sampleRate || DEFAULT_SAMPLE_RATE,
AUDIO_FORMAT,
NUM_CHANNELS,
BUFFER_SIZE
)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.