generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcfg.ts
27 lines (19 loc) · 918 Bytes
/
cfg.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { AbcVisualParams, SynthOptions } from 'abcjs';
export const PLAYBACK_CONTROLS_ID = 'abcjs-playback-controls-unused';
export const OPTIONS_REGEX = new RegExp(/(?<options>{.*})\n---\n(?<source>.*)/s);
export const DEFAULT_OPTIONS: AbcVisualParams = {
add_classes: true,
responsive: 'resize'
};
export const AUDIO_PARAMS: SynthOptions = {
// chordsOff: true,
};
export const SYNTH_INIT_OPTIONS: SynthOptions = {
// Give it a little more room:
pan: [-0.25, 0.25],
// Sound "fonts".
// These could be distributed locally with the plugin, but fair warning, they're large (GBs for all notes, I think)
// soundFontUrl: 'https://paulrosen.github.io/midi-js-soundfonts/abcjs/', // bright, crisp
soundFontUrl: 'https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/', // loud, deeper
// soundFontUrl: 'https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/', // muted, more mids?
};