Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (804)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (868)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Tool - Reference Note Keyboard [NOW LISTED IN SHOWCASE]  (Read 3159 times)
0 Members and 1 Guest are viewing this topic.
Offline philfrei
« Posted 2018-10-03 21:26:12 »


A music student (oboist) wanted an easy way to play a note to use as a reference. We were in agreement that the best thing to do is to play the pitch and hold it in memory and use your ears/pitch sense to compare that with what you are playing on your instrument, not rely on a visual guide (as with commercial tuners).

The student didn't want to buy a keyboard to accomplish this simple task. So I made a little program. Requires Java 8. To play a note, click on it with the mouse (hold mouse press down for sustain).

It's mostly made from parts of other things I've been working on. I thought I might post it on as a freebie. But before doing so, I thought I'd run it by JGO members. Any suggestions or feedback?

Download jar: Reference Note Keyboard

To be clear, it's not really meant for doing anything else, like playing melodies. I suppose it might be possible to make the typing keys play notes, but I'd have to solve at least one issue first: holding down a key (like spacebar or a letter) seems to retrigger it, as far as the JavaFX keyboard listener is concerned. This in turn seems to really gum up the JavaFX thread used for the GUI and disrupts audio playback.

Also, the latency could be lower for a "real" keyboard, although, it is true that the virtual playback tool for the NativeInstruments FM8 is pretty laggy, too.


music and music apps:
Offline philfrei
« Reply #1 - Posted 2018-10-06 07:00:05 »

This post by @tscandalitta inspired me to go ahead and work on the QWERTY keyboard listening for the synth.

New version is up. JavaFX constructs seem quite adequate for the task. What confuses the matter, though, are hardware issues.

1) The way the QWERTY keys are "wired" it is probably just not be possible to hold down some and have all other keys be acknowledged when they are pressed/released.

2) A TouchPad may interfere with the readability of the QWERTY keys. So, better to use the mouse (for settings controls or notes) if you are also going to also play QWERTY keys.

The latency is not bad!

Not sure what else to tweak. The EPiano voice maybe needs more harmonic content in the lower octaves, given that most computer speakers have horribly deficient bass response.

I once had a person ask for a "harmonium" app for playing Kirtan accompaniment to singing. The organ patch I have is not that far off. I've renamed it, will maybe come up with a way to make it a little wheezier.

Add more voice-choice options? I have a pretty good Harp, Vibraphone, a couple other nice pads could add in. But it might be good to keep it lightweight. (Under 120 KB so far! Am guessing under 20 MB download if JVM included.)

music and music apps:
Pages: [1]
  ignore  |  Print  

Riven (521 views)
2019-09-04 15:33:17

hadezbladez (5476 views)
2018-11-16 13:46:03

hadezbladez (2379 views)
2018-11-16 13:41:33

hadezbladez (5737 views)
2018-11-16 13:35:35

hadezbladez (1215 views)
2018-11-16 13:32:03

EgonOlsen (4657 views)
2018-06-10 19:43:48

EgonOlsen (5665 views)
2018-06-10 19:43:44

EgonOlsen (3192 views)
2018-06-10 19:43:20

DesertCoockie (4091 views)
2018-05-13 18:23:11

nelsongames (5031 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!