MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / downloadBlob

Function downloadBlob

packages/playground/src/components/AudioExporter.ts:5–13  ·  view source on GitHub ↗
(blob: Blob, filename: string)

Source from the content-addressed store, hash-verified

3import type { TrackItem } from './TrackItem';
4
5function downloadBlob(blob: Blob, filename: string): void {
6 const a = document.createElement('a');
7 a.download = filename;
8 a.href = URL.createObjectURL(blob);
9 document.body.appendChild(a);
10 a.click();
11 document.body.removeChild(a);
12 URL.revokeObjectURL(a.href);
13}
14
15export function exportGp7(api: alphaTab.AlphaTabApi): void {
16 if (!api.score) {

Callers 2

exportGp7Function · 0.85
exportAudioFunction · 0.85

Calls 2

removeChildMethod · 0.80
appendChildMethod · 0.65

Tested by

no test coverage detected