{"action":"created","issue":{"url":"https://api.github.com/repos/LMMS/lmms/issues/2313","labels_url":"https://api.github.com/repos/LMMS/lmms/issues/2313/labels{/name}","comments_url":"https://api.github.com/repos/LMMS/lmms/issues/2313/comments","events_url":"https://api.github.com/repos/LMMS/lmms/issues/2313/events","html_url":"https://github.com/LMMS/lmms/issues/2313","id":104960214,"number":2313,"title":"midi velocity","user":{"login":"gilles504","id":14041380,"avatar_url":"https://avatars.githubusercontent.com/u/14041380?v=3","gravatar_id":"","url":"https://api.github.com/users/gilles504","html_url":"https://github.com/gilles504","followers_url":"https://api.github.com/users/gilles504/followers","following_url":"https://api.github.com/users/gilles504/following{/other_user}","gists_url":"https://api.github.com/users/gilles504/gists{/gist_id}","starred_url":"https://api.github.com/users/gilles504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gilles504/subscriptions","organizations_url":"https://api.github.com/users/gilles504/orgs","repos_url":"https://api.github.com/users/gilles504/repos","events_url":"https://api.github.com/users/gilles504/events{/privacy}","received_events_url":"https://api.github.com/users/gilles504/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-04T20:00:24Z","updated_at":"2015-09-20T20:24:58Z","closed_at":null,"body":"Hello,\r\n\r\nFor now velocity for midi input can be raw from keyboard or fixed to a value.\r\nIt's ok with some keyboards but for keyboards with fixed velocity curve it does not work well.\r\nA better (simple) approach could be to have 2 values, min and max velocity.\r\nA much better approach should be to have a real 1->127 to 1->127 graphical editor to create a mapping curve.\r\nFor now and for my needs (with an Akai LPK25 mini keyboard) I just use the fixed value as a minimum velocity value:\r\n\r\nvoid MidiPort::processInEvent( const MidiEvent& event, const MidiTime& time )\r\n...\r\n\t\tif( fixedInputVelocity() >= 0 && inEvent.velocity() < fixedInputVelocity() ) // FIXME GFE now input is not fixed but minimum\r\n\t\t{\r\n\t\t\tinEvent.setVelocity( fixedInputVelocity() );\r\n\t\t}\r\n \r\nWith this simple hack velocity is useable (with a value of 50). We absolutly need to limit the range of velocity because it seems most instrument use velocity as a volume (but that is another debate...).\r\n"},"comment":{"url":"https://api.github.com/repos/LMMS/lmms/issues/comments/141831134","html_url":"https://github.com/LMMS/lmms/issues/2313#issuecomment-141831134","issue_url":"https://api.github.com/repos/LMMS/lmms/issues/2313","id":141831134,"user":{"login":"wotwot","id":1377647,"avatar_url":"https://avatars.githubusercontent.com/u/1377647?v=3","gravatar_id":"","url":"https://api.github.com/users/wotwot","html_url":"https://github.com/wotwot","followers_url":"https://api.github.com/users/wotwot/followers","following_url":"https://api.github.com/users/wotwot/following{/other_user}","gists_url":"https://api.github.com/users/wotwot/gists{/gist_id}","starred_url":"https://api.github.com/users/wotwot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wotwot/subscriptions","organizations_url":"https://api.github.com/users/wotwot/orgs","repos_url":"https://api.github.com/users/wotwot/repos","events_url":"https://api.github.com/users/wotwot/events{/privacy}","received_events_url":"https://api.github.com/users/wotwot/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T20:24:58Z","updated_at":"2015-09-20T20:24:58Z","body":"Hello,\r\nwhile trying to use the triple oscillator with a LPK25 i found it a bit weird that velocity values seem to get added up ie when playing a chord. It would be great to handle this in a way that would allow for sensitive legato (like on a monosynth) as well as for chords."}}