Trying to program a piano staff/stave. Is this what it's supposed to look like? [closed] - piano

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I'm currently writing a software application which creates notes on a staff, when a piano key is pressed. Unfortunately I have no background in music, and thus am finding it quite hard to get started.
Could someone kindly tell me if the following screenshot represents what it would look like on the staff (approximately) if someone presses all the white keys on a 25-key keyboard (15 white, 10 black) from left to right, and then from right to left?
Am I on the right track, or is this completely wrong? (The notes are just displayed as circles for now - im trying to get the positioning right).

Almost. You need a few extra things. (NB. This is a simplified list just to get you going. Music notation is a complex beast that can take years of study to master)
A Clef. Presumably in this instance you're looking for a treble clef.
You need to imagine that there are invisible lines (ledger lines) above and below the 5 you can see. In your example, the very first note played is immediately below the first of the invisible lines at the bottom, so you need to draw that as part of the note. (See the example on the wikipedia page I linked to.)
Obviously, note duration is required, but you mention you're already on that so I won't talk about it here.
A Key signature to tell the player what key the music is in, and therefore what sharps and flats to expect
There's a lot more to drawing music on a stave than meets the eye, I'm afraid, but these should point you in the right direction.

Try looking at examples of sheet music. That may be helpful.
For instance: http://en.wikipedia.org/wiki/Sheet_music

I think so..
But what I'm missing at the most left side of the staff is the 'key'. This is pretty important.

Related

Baby Cry Sound detection [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
Improve this question
I wanted to write a code to detect baby cry sound. I am using Windows as platform. Presently, I am able to get audio samples and its frequency plot(using FFT) but not sure how to proceed forward.
I wanted to ask what steps I should follow to detect the baby cry sound given its time-frequency plot.
I saw some methods such as median filter followed by HMM in speech recognition. But for simple sound detection do I need to go for such sophiticated method?
I will be very grateful if you could help me.
Hidden markov models are widely used in speach recognition, but since you don't really need to know what your baby is saying (next project: baby translator), i don't think it is what you need.
What you should probably do is look at a lot of spectorgrams of babies crying, and look for patterns. Or, even better, let your algorithm do this. What you do is calculate certain metrics about your sound called MFCCs.
You do this on, say, 1000 samples of crying sound, and then you have a 1000 vectors of metrics.
Now, for each metric you calculate the standard deviation. This gives you a way to tell of a sample of random babysound how much different it is from avarage crying sound.
This sounds very hard, but i know there are tools out there. Have a look at sphinx. You can probably train to work.
But either way, start by collecting baby-crying sounds ;) (but don't steal candy)

Free dependency mapping tool with automatic layout adjustments? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for a tool that will let me draw out a map of dependencies for applications, servers, etc. We have a lot of servers and a lot of databases, and no way of tracking what depends on what. Note that I'm not talking about code or class dependencies within a project, but rather dependencies on servers, databases, and so on.
When I sat down to create a sample map, I ended up with something like this:
Now, the problem I have with doing this on paper or in MS Paint is that the layout is not adjustable. For example, if I took a node in the above example and moved it, I want the other lines and nodes to adjust to the new position of the one I just moved.
I checked out some "mind mapping" applications, like FreeMind, and found it to be too restrictive. For example, in that application, you can't just freely draw stuff and connect it, you have to specify nodes and their relationships (child, parent, sibling). Also, there was no ability to comment on anything. For example in the above image, I'd like to be able to include comments for each thing in the map, but have them be hidden until that object is clicked. In this way, I can write a lot of text regarding the relationship and it's history, without muddling up the map.
At the most basic level, all I want is a super simple application that will just let me draw squares, insert text (and hidden comments) in, and connect them with arrows, and then allow me to move the squares around and have the surrounding squares and arrows adjust automatically.
A good tool for making general diagrams of this sort is GraphViz. You specify the input as a .dot file, containing instructions similar to (for your example):
digraph G {
web_app -> server1
web_app -> sql_database
web_app -> repository
server1 -> esx_server1
...
}
(There are many formatting directives, such as proper labels you would use on the vertexes, rather than the short names I've used above.)
Then run a command line tool to lay out the graph as an image. There are many layout algorithms, so often you will use trial and error to find one which works best for your graph.
GraphViz can do a reasonably good layout job on many graphs. But the great thing about it is the text-based input; it's easy to autogenerate the input from a program, or keep it in version control, etc.

WAV-MIDI matching [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
let's consider a variation of the "WAV to MIDI" conversion problem. I'm aware of the complexity of such a problem and I know that a vast literature about the more general Music Information Retrieval (MIR) subject exists.
But let's suppose here that we already have both the WAV and the MIDI representation of a music piece, so we actually don't have to discover pitches inside the WAV signal from scatch... we "just" have to match the pitches detected (using a suitable algorithm) with the NoteOn events contained in the MIDI representation. I definitely suppose we should use the information contained in the MIDI file to give some hints to the pitch detection algorithm.
Such a matching tool could be very useful, for example for MIDI "humanization": we could make the MIDI representation more expressive using the information retrieved from the WAV signal to "fine tune" note onsets, durations, dynamics, etc...
Does anybody know if such a problem has already been addressed in literature?
Any form of contribution or assistance will be greatly appreciated.
Thanks in advance.
At the 2010 Music Hackday in London some people used the MATCH Vamp plugin to align score to Youtube videos. It was very impressive! Maybe their source code could be of use. I don't know how well MATCH works on audio generated from MIDI files, but that could be worth a try. Here's a link: http://wiki.musichackday.org/index.php?title=Auto_Score_Tubing
This guy appears to have done something similar: http://www.musanim.com/wavalign/ His results are definitely interesting.
This seems like an interesting idea. What are you trying to do, is it just match the notes pitch? Or do you have something else in mind?
One possible thing that you could look into is if you know the note (as an integer value I think its been a while) that will be used to pass into the noteOn method, you may be able to do something with that to map it with a wav signal. IT depends on what you are trying to do.
Also, there are some things that you could also play around with in (I think it is called) the midi controller. Such as: modulation, pitch, volume, pan, or play a couple of notes simultaneously. What you could do with this though, is have a background thread that can change some of those effects as the note is being played. For example, you could have a note get quieter the longer it is played, or have a note that with pan between the left and right speakers, etc
I havnt really played with this code in a long time, but there are some examples of using a midi controller.

anybody know of a left-right symmetric keyboard? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
in the standard keyboard the homerow and the bottom row are offeset horizontally by about half key size. so they are symmetrical for left and right hands. but the home row and toprow are offset horizontally by about a quarter key size. so they become asymmetrical for the left and right hand positons when fingers extend to the top row
i guess it is a relic from the heredity.
is there a keyboard available without this asymmetry?
Have you seen the typematrix keyboard?
I believe that I've seen the layout you describe referred to as "stacked" because the keys are stacked on top of one another, rather than offset. Apparently this company calls it a "matrix" design. They also have little images showing the difference:
Staggered Columns
Forces unbalanced motions that strain fingers, hands, and wrists.
Vertical Columns
Reduces motions that cause repetitive strain injury (RSI).
Why you'd ever willingly use anything other than a Model M is beyond me, however. :-)
There are some nifty symmetric keyboards under the "Solutions" section here. From the same author, here is a list (with illustrations!) of some other attempts at symmetric keyboards, some of which have no offset whatsoever.
check this:
http://www.trulyergonomic.com/
I think this keyboard really uses the symmetry idea in a good way. It will be released soon, though.
About the offset, the reason is there come from long ago, with the mechanical type-machines...
No serious reason any longer, but people just get used to that.
Many keyboards without the offset are available, here's several from one company: http://www.chestercreektech.com/keyboards.html
I've tried typing on keyboards without the offset, and it is hard. You might be surprised.
Some keyboards are very very different: http://www.frogpad.com/
I'd like to try one, but am under no illusions that I could ever get used to it.

Is using Dexter's character sprite okay, or do I have to [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
.
Inspiration -- Southpark game
(very popular if you see download count on download.com ,,, did he ask for permission ??)
I am making a 2d game based on dexter's lab theme. I've got the sprite of dexter from GSA. basically I'm not an artist, so I have to depend on already available sprites, backgrounds, sfx on websites like GameSpriteArchive etc.
But is it okay/legal to use the dexter sprite I have got ?
I wish to release it publicly too, so shall I have to make lot of changes to do that?
Is it possible to get a permission to use the sprite?? My hopes are very less in getting permission.
Besides all that my basic plan is -
Dexter's sprite from google search
Enemy sprites from various GBA/SNES/etc games
tiles/objects from these retro games
Background art and style from blogs and portfolios of artists behind dexter, powerpuff girls, and samurai jack
I am not a lawyer. This is not legal advice.
If you made the sprite yourself, you'd be fine. If you got a release to use it from the creator, you'd be fine. If it was released into the public domain, you'd be fine.
Anything else, you'd have a definate problem with.
There's also the possible problem you'd have even if you create the sprite yourself -- the likeness of the character is likely copyrighted. However, that's not as cut-and-dried of an issue.
Unfortunately, this is one of the things you'd need to ask a real lawyer to get a firm answer on. If it's for your own use and that of some close friends, you might be able to get away with hoping you don't get noticed (like most people who speed). If you're planning to include this in something you distribute to the public (even more so if you sell it), you're likely to run into problems.
probably not legal, since Dexter's lab is published by Hanna-Barbera and was created by Genndy Tartakovsky. They would have to grant you a license - but it can't hurt to ask!
You probably won't have to get permission if they don't notice -- it's the old "legal unless you get caught" thing. However, I strongly reccomend that you DO get permission from the creators or not use it at all on purely ethical grounds. After all, you wouldn't want somebody appropriating your work, right?

Resources