oldrich-s / musicope Goto Github PK
View Code? Open in Web Editor NEWThe Piano Game
License: MIT License
The Piano Game
License: MIT License
I'm running musicope over a Fedora distribution. I run it as root ( sudo npm start
). But, I guess, Midi is not recognized ( I say "I guess" because I don't know how app looks )
The Midi is detected by system:
[dani@localhost musicope]$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xdc320000 irq 133
1 [Piano ]: USB-Audio - Digital Piano
Yamaha Corporation Digital Piano at usb-0000:00:14.0-2, full speed
I have tried changing default-config to:
p_deviceIn: "1",
p_deviceOut: "0",
... but nothing happens when I play keys on device.
How can I do to issolate and fix this issue? Thanks!
Hello
Can you help with below errors when running gulp?
C:\git\game>gulp
gulp-typescript: noExternalResolve is deprecated - use noResolve instead
The non-standard option noExternalResolve has been removed as of gulp-typescript 3.0.
Use noResolve instead.
More information: http://dev.ivogabe.com/gulp-typescript-3/
[20:19:23] Using gulpfile C:\git\game\gulpfile.js
[20:19:23] Starting 'default'...
[20:19:23] Starting 'clean'...
[20:19:23] Finished 'default' after 31 ms
[20:19:23] Finished 'clean' after 50 ms
[20:19:23] Starting 'vendorScripts'...
[20:19:23] Starting 'vendorCSS'...
[20:19:23] Starting 'ts'...
gulp-typescript: ts(tsProject) has been deprecated - use .pipe(tsProject(reporter)) instead
As of gulp-typescript 3.0, .pipe(ts(tsProject)) should be written as .pipe(tsProject()).
More information: http://dev.ivogabe.com/gulp-typescript-3/
[20:19:23] Starting 'content'...
[20:19:24] Finished 'vendorCSS' after 176 ms
[20:19:24] Finished 'content' after 265 ms
[20:19:24] Finished 'vendorScripts' after 389 ms
src\typescripts_app.ts(12,18): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(13,18): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(35,5): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(50,9): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(51,13): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(52,13): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(53,13): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(59,17): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(60,17): error TS2304: Cannot find name 'Mousetrap'.
src\typescripts_app.ts(61,26): error TS2304: Cannot find name 'jQuery'.
src\typescripts_app.ts(65,17): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(66,17): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(72,13): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(73,13): error TS2304: Cannot find name 'Mousetrap'.
src\typescripts_app.ts(81,24): error TS2304: Cannot find name '$'.
src\typescripts_app.ts(83,24): error TS2304: Cannot find name '$'.
Do deep benchmark to find all the bottlenecks of the game play
https://youtu.be/-ynz-tsMNAY
Well done man, this is programming done well
Hello, I'm interested in contributing to your project. Can you tell me a bit about it?
This is on Debian Jessie with Electron v1.2.4.
phil@enigma ~/bin/musicope-win32/app/game $ ~/bin/electron/electron index.html
Segmentation fault
The docs don't really give any details on how to run the game, so I'm just guessing. Any suggestions for debugging?
When I download the files my Mac automatically decompresses the files and I'm left with an icon and a bunch of code files. How am I supposed to run it?
A resize problem ocuured once. The piano was always smaller than the window. It gets fixed when you restart the app.
terminal out
musicope-master# npm start
[email protected] start
node server.js
node:events:353
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied 0.0.0.0:80
at Server.setupListenHandle [as _listen2] (node:net:1278:21)
at listenInCluster (node:net:1343:12)
at Server.listen (node:net:1429:7)
at Function.listen (/home//Documents/musicope-master/node_modules/express/lib/application.js:618:24)
at Object. (/home//Documents/musicope-master/server.js:72:8)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1322:8)
at processTicksAndRejections (node:internal/process/task_queues:80:21) {
code: 'EACCES',
errno: -13,
syscall: 'listen',
address: '0.0.0.0',
port: 80
}
npm ERR! code 1
npm ERR! path /home/*****/Documents/musicope-master
npm ERR! command failed
npm ERR! command sh -c node server.js
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-12-29T18_44_37_466Z-debug.log
log file
0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/home//Documents/musicope-master/.npmrc Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/root/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/usr/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 8ms
19 verbose npm-session e04fb45a6ff1f9e7
20 timing npm:load Completed in 17ms
21 timing command:run-script Completed in 287ms
22 timing command:start Completed in 289ms
23 verbose stack Error: command failed
23 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
23 verbose stack at ChildProcess.emit (node:events:376:20)
23 verbose stack at maybeClose (node:internal/child_process:1063:16)
23 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
24 verbose pkgid [email protected]
25 verbose cwd /home//Documents/musicope-master
26 verbose Linux 5.4.0-58-generic
27 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
28 verbose node v15.5.0
29 verbose npm v7.3.0
30 error code 1
31 error path /home/*****/Documents/musicope-master
32 error command failed
33 error command sh -c node server.js
34 verbose exit 1
@czb
musicope
In the opportunity to greet you, I make the proposal to make the logo for your project. As a way to contribute with open source projects, it will be carried out completely at no cost to you.
Please let me know if you want to make the logo, so I can send you some questions related to the project.
without more
Best regards
Engineer
Luis Baute
Designer
Well, I found 2 problems, I don't know if I made something wrong or if the problem is the program, but if there is any way to fix it please tell.
The first problem is that if there are 2 times the same note play together with little to no time in between, the program doesn't play them.
The second problem is that the notes are played a bit before actually touching the "piano" image, so you have to "predict" when to play a note instead of seing when to do so.
Sorry if I made any mistakes, I am non-native
Edit: Also after messing around with some configurations something stopped working and now I can't even play it
Edit 2: I couldn't find a solution for the first problem, but I kinda patched the second one by adding a +75 to the piano height in the drawscene file, though it bugs the "wait" function, so it's not a really good solution
Game sometimes blocks because radius in addToKnownNotes is not ok. Make sure that it is always ok. Even when I press "m" etc.
I tried loading a small black midi, only 2k notes.. and it doesn't play it at all, the screen just stays black with the midi name in the corner, Can you try and fix this?
Hi,
I downloaded the window version under the release section.
I am able to open the musicop.exe and pick a default song. However, it doesn't play the song at all.
Am I missing something? BTW, I am using Win7 VM
Thanks
iDeam0316
Hey ! I have a question can you tell me how to use your service because when I click on title.mid the page give me :
/songs/OMFG_-Hello.mid
Wrote on a black page and nothing appears. . .
Hey czb, could you please reupload the files to the game(not the source files).
http://musicope.com/
http://www1.musicope.com/?kw=
is not working.
Hi,
thank you for creating this cool game.
Could you please add a license file to the repo?
Without one it is not open source.
You can get help
here: https://help.github.com/articles/licensing-a-repository/
and here: https://choosealicense.com/
If I can help in any way, I'm happy to do so.
Thank you
Marius
I'm trying to run this on a raspberry pi so I'm not sure how it will work. but anyway, I'm getting the following erros and am not sure what to do about them.
pi@raspberrypi:~/musicope $ sudo npm install
(node:4901) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR! at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Linux 4.14.79-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/musicope
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/musicope/npm-debug.log
npm ERR! not ok code 0
pi@raspberrypi:~/musicope $
All it does is play midi files (and by the way the sound is horrible compared to other synthesizers like for example (UMP) by PipiraMine). Is it that primitive or am I missing anything
And use $HOME/.musicope
as its document directory
Then we can just
> npm install -g musicope
> musicope -l 1234
> curl http://127.0.0.1:1234
When I tried to log on with dropbox, it said that the app user limit has been reached, and that the app developer needs to increase the user limit from the app console. Hopefully this is as simple to fix as the notice makes it sound.
Dear !
I want to make music videos like synthesia but there is no sound in your game can you add instruments to it ? It is a very good project !
I've downloaded the thing, but I can't really find the npm install and start files, am I doing something wrong? my first time using github here, so help would be more than appreciated.
Why require NW rather than support loading the app as a web page in the browser? WebMIDI has been part of Chrome stable since around May, and will be shipped in Firefox in the future.
For example, here's a demo that works nicely with my external keyboard.
I do not own a MIDI keyboard
I get this errors:
$ npm start
events.js:167
throw er; // Unhandled 'error' event
^
Error: listen EACCES 0.0.0.0:80
at Server.setupListenHandle [as _listen2] (net.js:1269:19)
at listenInCluster (net.js:1334:12)
at Server.listen (net.js:1421:7)
at Function.listen (/tmp/musicope/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/tmp/musicope/server.js:72:8)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
Emitted 'error' event at:
at emitErrorNT (net.js:1313:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
at startup (internal/bootstrap/node.js:279:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:696:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pablo/.npm/_logs/2019-04-01T06_41_16_689Z-debug.log
$ inxi -S -! 31
System: Kernel: 4.15.0-46-generic x86_64 bits: 64 Desktop: Gnome 3.28.3 Distro: Ubuntu 18.04.2 LTS
The log file: 2019-04-01T06_41_16_689Z-debug.log.
Already tried setting with
"dependencies": {
"express": "latest",
"typescript": "latest"
Hi,
I'd really like to get this working as it would be great to use in my classroom as I could deploy a midi file for the class to practice each week. If I can manage to get it working, I'd like to help make a Google Drive storage option instead of Dropbox. :)
I'm getting a 'require is not defined' in line 2 of app.js. I've tried bringing in RequireJS but I'm just swinging blindly here.
Thanks!
This game is really great!!! please continue the development.....
all this game needs is right marketing strategies.
It'd be nice to allow importing of external MIDI files, since I have some that wouldn't be possible to include with the site itself due to copyright constraints, but I would still like to use them.
MIDI files sound different in musicope, not like a piano, not like the original instruments in the MIDI file. What might be the reason? Should I install some SoundFonts? How do I do that?
(I'm not using a MIDI keyboard. Just trying to watch how certain songs are played on a normal non-MIDI piano.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.