Improve MIDI search and add browser playback engines.

This commit is contained in:
b1rdmania
2025-12-18 14:25:38 +00:00
parent 4fdc6984bc
commit 2c9d06d8d7
30 changed files with 2080 additions and 93 deletions
+3
View File
@@ -1,15 +1,18 @@
import type { SearchAdapter, MIDICandidate } from '../types.js';
import { BitMidiAdapter } from '../adapters/BitMidiAdapter.js';
import { DongraysAdapter } from '../adapters/DongraysAdapter.js';
import { MockAdapter } from '../adapters/MockAdapter.js';
export class MIDISearchService {
private adapters: SearchAdapter[];
constructor() {
// Real MIDI adapters only - no mock
this.adapters = [
new BitMidiAdapter(),
new DongraysAdapter()
];
console.log('MIDISearchService initialized with real adapters:', this.adapters.map(a => a.name));
}
async search(query: string): Promise<MIDICandidate[]> {