|
@@ -1,6 +1,4 @@
|
|
|
-/*
|
|
|
- Partial IAudioPlayer implementation using the high level "soundfont-player" library.
|
|
|
- */
|
|
|
+/* Partial IAudioPlayer implementation using the high level "soundfont-player" library. */
|
|
|
|
|
|
import { MidiInstrument } from "../MusicalScore/VoiceData/Instructions/ClefInstruction";
|
|
|
import { IAudioPlayer } from "../Common/Interfaces/IAudioPlayer";
|
|
@@ -21,7 +19,8 @@ export class BasicAudioPlayer implements IAudioPlayer<SoundfontPlayer.Player> {
|
|
|
|
|
|
public SoundfontInstrumentOptions = {}; // e.g. set { from: 'server.com/soundfonts/' } for soundfont fetching url
|
|
|
/** Multiplicator for gain (volume output). 1 represents the maximum volume in OSMD (100%),
|
|
|
- * but it looks like soundfont-player is louder with volumes > 1, e.g. 3 */
|
|
|
+ * but it looks like soundfont-player is louder with volumes > 1.
|
|
|
+ * E.g. set osmd.PlaybackManager.audioPlayer.GainMultiplier to 3 if you think the player is too quiet. */
|
|
|
public GainMultiplier: number = 1;
|
|
|
|
|
|
public async open(uniqueInstruments: number[], numberOfinstruments: number = 16): Promise<void> {
|