A modern React-based renderer for MusicXML files, built with TypeScript and Vite. This application allows you to visualize and render musical scores from MusicXML files directly in the browser.
- Renders MusicXML files with high fidelity
- Support for various musical notation elements:
- Notes and rests
- Clefs and key signatures
- Time signatures
- Accidentals
- Chord symbols
- Slurs and ties
- Tablature notation
- Fretboard diagrams
- Uses custom font (Bravura) for musical symbols
- Built with modern web technologies (React, TypeScript, Vite)
# Clone the repository
git clone https://github.com/skoliveira/MusicXML-Renderer.git
cd MusicXML-Renderer
# Install dependencies
npm install
# Start the development server
npm run dev- Place your MusicXML files in the
src/assetsdirectory - Import and use the
MusicRenderercomponent in your React application:
import { MusicRenderer } from "./components/MusicRenderer";
function App() {
return <MusicRenderer musicXmlFile="path/to/your/file.musicxml" />;
}src/components/- React components for rendering different musical elementssrc/assets/- MusicXML files and fontssrc/parse.ts- MusicXML parsing logicsrc/type.ts- TypeScript type definitions
# Run in development mode
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewContributions are welcome! Please feel free to submit a Pull Request.