Skip to content

Commit

Permalink
Working prototype
Browse files Browse the repository at this point in the history
* Renders notes
* Renders rests
* Renders tuplets
* Does not render some tuplets correctly
  • Loading branch information
tonygoldcrest committed Jan 31, 2024
1 parent 8563870 commit 4fe3d55
Show file tree
Hide file tree
Showing 9 changed files with 535 additions and 302 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ module.exports = {
'no-useless-constructor': 'off',
'class-methods-use-this': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'import/prefer-default-export': 'off',
'no-use-before-define': 'off',
},
parserOptions: {
ecmaVersion: 2022,
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ node_modules

release/app/dist
release/build
test-songs/
.erb/dll

.idea
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"@types/react-dom": "^18.2.7",
"@types/react-test-renderer": "^18.0.1",
"@types/terser-webpack-plugin": "^5.0.4",
"@types/vexflow": "^1.2.42",
"@types/webpack-bundle-analyzer": "^4.6.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ipcMain.on('load-default', async (event) => {
console.log('here');

const midiData = fs.readFileSync(
'/Users/antosha/code/ch-sheet/test-songs/disturbed/notes.mid',
'/Users/antosha/code/clone-hero-sheet/test-songs/disturbed/notes.mid',
);
const midi = new Midi(midiData);
event.reply('load-default', midi.toJSON());
Expand Down
Loading

0 comments on commit 4fe3d55

Please sign in to comment.