If no external MIDI hardware is available, a standard computer keyboard can be used instead. The live Melody from the selected device. Larger values can eliminate rhythmic inaccuracies if your machine can’t keep up with processing audio, but will introduce a constant delay. Sets the MIDI device to use, or a virtual keyboard controlled by a standard computer keyboard.Īdds an artificial delay to notes, in milliseconds. You can connect to a synthesizer Node (such as the Melodic Oscillator Node) to produce audio, connect to a Piano Roll Node to record, or connect to a MIDI Monitor Node to display the currently pressed note(s). I am very happy with the help you have given.Listens to an external MIDI keyboard and outputs a live Melody with notes generated from each keypress. This Node can also be used with a standard computer keyboard (see the Virtual Keyboard section of this documentation). VIRTUAL MIDI PIANO KEYBOARD DELAY CODECan you point me to or post any HTLM5 based (JavaScrpt should be fine?) basic sound creating source code (maybe with a start switch) that I can just copy and paste into my HTML5 index.html page and upload? I think that is the starting point I can work from. The way I learn best is to get the simplest functioning code and expand from there. So I am missing some very elementary knowledge-probably the HTML5 basic document format. With all the copying page/instruction example source code, pasting onto my index.html and uploading, I have yet to create any sound on my online page. I just need a decent sound with little delay. From what you have written, Web Audio API appears to be the best approach for me. This information has given some good direction for me to get further understanding (main modules, external modules, function() definition). Some differences (I've had a quick look ONLY), I see that the lines about 'audio.js' and 'piano'js' were on separate lines in the original, but are all run together in your page - this should not matter to the HTML, but if something has caused this change, what else has been messed up?Īlso, just after this, there was a function() definition in the original (I suspect) but it seems not to be there on your web site - or is it just the above noted text displacement that has caused this too?īy the way, since the earlier messages, I've played with the piano system at Mr Coles while it was still working, and while playing the piano I could see that my computer was showing ZERO internet activity and zero HD activity, so all the playing/music processing was happening, as the text within the prog suggests, within the html/js/css, and I'm sure this has a massive effect on delays etc. VIRTUAL MIDI PIANO KEYBOARD DELAY FULLIf I access your web page () I see that most (all ?) of the links now have full URLs there, they did not in the original. I'd need to see EXACTLY how you've inserted this code into your prog. Oh, I see that you have already seen the source, but you say that when you try to use the source, you just get 'the words'? Which words? Do you mean the HTML code? Which has NOT been interpreted? If that is the case, then the code is not being used properly, and apache (or whatever) on the server is not getting the code correctly. This will certainly explain how the delay with this piano is so much less than some other examples, although you do NOT indicate what you think of the sound quality compared to other systems (with longer delays). So, this page, because it uses JS, could well be generating some of the sound on your computer, maybe using some data downloaded. I would need to investigate these things further, but why spoil your fun? Oh, also follow the links within the source to piano.js and audio.js, which will be subsidiary JS modules, which you may also find interesting? These may contain some of the data for the piano sounds? As well as other info, the comments refer to UDI (?) data modules that the writer is experimenting with. The code includes a number of comments that you may find helpful. This will show you the HTML source for this page. While on the page with the keyboard showing, right-click on the page, and select 'View Source'. I would guess that JS will include some sound facility. JavaScript depends on a substantial Java module that needs to be on your computer already, nowadays JS is almost an accepted part of any browser as so much HTML will use JS, even if just for certain specific functions. This virtual piano seems to be using JavaScript, as indicated on the keyboard graphic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |