{"id":138,"date":"2009-10-04T14:54:30","date_gmt":"2009-10-04T18:54:30","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=138"},"modified":"2010-05-15T06:54:27","modified_gmt":"2010-05-15T11:54:27","slug":"virtual-midi-keyboard-in-ubuntu","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2009\/10\/04\/virtual-midi-keyboard-in-ubuntu\/","title":{"rendered":"Virtual MIDI Keyboard in Ubuntu"},"content":{"rendered":"<p>On Windows, you could find many freeware virtual piano software. But on Linux, you have no such easy setup or such choice. There are two major pieces virtual piano software &#8211; they are <a href=\"http:\/\/packages.ubuntu.com\/jaunty\/vkeybd\">Virtual Keyboard<\/a> and <a href=\"http:\/\/vmpk.sourceforge.net\/\">Virtual MIDI Piano Keyboard<\/a>.<\/p>\n<div style=\"width: 400px\" class=\"wp-caption alignleft\"><a href=\"\/images\/labs\/VirtualKeyboard.png\"><img decoding=\"async\" loading=\"lazy\" title=\"Virtual Keyboard\" src=\"\/images\/labs\/VirtualKeyboard.png\" alt=\"Virtual Keyboard\" width=\"390\" height=\"378\" \/><\/a><p class=\"wp-caption-text\">Virtual Keyboard<\/p><\/div>\n<div style=\"width: 548px\" class=\"wp-caption alignright\"><a href=\"\/images\/labs\/VirtualPianoKeyboard.png\"><img decoding=\"async\" loading=\"lazy\" title=\"Virtual MIDI Piano Keyboard\" src=\"\/images\/labs\/VirtualPianoKeyboard.png\" alt=\"Virtual MIDI Piano Keyboard\" width=\"538\" height=\"317\" \/><\/a><p class=\"wp-caption-text\">Virtual MIDI Piano Keyboard<\/p><\/div>\n<p>You should be sure you have your sound card proper set before you start this &#8211; i.e. make sure you can play a file in Totem or something.<\/p>\n<p>To install Virtual Keyboard:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo apt-get install vkeybd<\/pre>\n<p>To install Virtual MIDI Piano Keyboard (<a href=\"\/labs\/files\/vmpk.deb\">download vmpk.deb<\/a> to \/tmp first):<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo dpkg --install \/tmp\/vmpk.deb<\/pre>\n<p>After you have chosen one (or both) of the above, install the remaining dependencies:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo apt-get install qjackctl zynaddsubfx<\/pre>\n<p>After you have installed everything, run the following and restart your computer:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo su -c 'echo @audio - rtprio 99 &gt;&gt; \/etc\/security\/limits.conf'\r\nsudo su -c 'echo @audio - memlock 250000 &gt;&gt; \/etc\/security\/limits.conf'\r\nsudo su -c 'echo @audio - nice -10 &gt;&gt; \/etc\/security\/limits.conf'<\/pre>\n<p>After restarting, open the JACK control center (Applications &gt;&gt; Sound &amp; Video &gt;&gt; JACK Control), and start the JACK server. Once it is started, click the Connect button at the lower left corner. Start ZynAddSubFx and Virtual Keyboard\/Virtual MIDI Piano Keyboard and go back to the JACK control center, select Connect, then the ALSA tab. Connect the Virtual Keyboard\/VMPK on the left to your sound card and the ZynAddSubFx. Connect your sound card on the left to the right. The result should look something like this:<\/p>\n<div style=\"width: 596px\" class=\"wp-caption aligncenter\"><a href=\"\/images\/labs\/JACKAudio.png\"><img decoding=\"async\" loading=\"lazy\" title=\"JACK audio connecitons\" src=\"\/images\/labs\/JACKAudio.png\" alt=\"JACK audio connecitons\" width=\"586\" height=\"316\" \/><\/a><p class=\"wp-caption-text\">JACK audio connecitons<\/p><\/div>\n<p>After that is complete, go back to Virtual Keyboard\/Virtual MIDI Piano Keyboard and click on a few piano keys. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>On Windows, you could find many freeware virtual piano software. But on Linux, you have no such easy setup or such choice. There are two major pieces virtual piano software &#8211; they are Virtual Keyboard and Virtual MIDI Piano Keyboard. You should be sure you have your sound card proper set before you start this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[29,586,585,576,862,583,589,584,577,587,28,579,582,578,580,581,588],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/138"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}