simonvanderveldt / openAV-Ctlra
forked from openAVproductions/openAV-Ctlraadd-ableton-pu…
Commits on Jan 6, 2018
-
simonvanderveldt committed
Jan 6, 2018 -
simonvanderveldt committed
Jan 6, 2018 -
simonvanderveldt committed
Jan 6, 2018
Commits on Jan 4, 2018
-
Fix encoder direction and value
simonvanderveldt committedJan 4, 2018 -
simonvanderveldt committed
Jan 4, 2018
Commits on Jan 3, 2018
-
usb: remove unnecessary BSD_SOURCE define
Thanks @foolswood for noticing! Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
Commits on Dec 2, 2017
-
mikro mk2: improve pad sensitivity
After testing, the sensetivity of the pads needed some updates. Future commits will amend and improve these values more. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: rework median filter to all pads
Increased threshold, seems to trigger exactly as desired, need to work on linearity of velocity yet. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: reimplement pad onset median filter
Using standard qsort() method for now. This provides a large improvement in single-pad handling. Multiple pads still seeing issues. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: rework screen and improvements
Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: enable screen bitmap xfers
This commit enables the blit to screen function to push a single channel bitmap of binary data from the application to the screen on the maschine. The maschine driver performs the required multiplexing of and xfer header mushing to make it happen. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: clear screen when starting up
This commit adds basic screen infrastructure. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: fix usb writes with libUSB
Lights verified as working now Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: reworking pad reading
Need to rework filters for new arrival rate of data, which means that in general the "feel" for the pads will need to be re-evaluated. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: rework USB xfers to use libUSB
This open the libUSB backend to maschine, removing the requirement on the /dev/hidraw interface. Currently the bytes are only read, and they are not decoded properly, due to an offset difference between the HidRaw buffer (including endpoint as first byte) and libUSB data (without said first byte). Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
mikro mk2: timing measurements for read / write
Using the HIDRAW API, time read and write durations. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: remove usleep() from disconnect
During debugging, a usleep() was added to allow USB writes progress to the device. This has since been fixed in the USB sub-system, to wait for a specific amount of time or until any outstanding writes have completed (whichever happens first), see commit 859ea9a for details. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
usb: remove debug print from async write path
Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
ctlra/avtka/x1: add 7 segment display support
Relates to feature request openAVproductions#18 Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
ctlra: fix return if invalid result in virtual dev
This commit fixes a possible segfault if a controller is virtualized, and the device returns NULL instead of a valid device_t from its connect() function. Previously a NULL pointer + offset would be passed to the application accept_dev_func(), which would often result in a segfault. Returning early before the app dev accept call handles this. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
usb: on closing, wait a bit for inflight writes
This gives the USB subsystem / kernel / device a chance to turn off some LEDs before we terminate the USB connection, (and in doing so cancel any outstanding events..). Use the inflight write count to skip out of waiting if it isn't required. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: memset all lights to off before quitting
Also usleep to allow the usb transactions to retire. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: clean up led write routines as working stable
Note that stable means that it is consistently performing the writes in a performant way, without drops of event messages. The colour table index still needs to be accessed to fix the colour-id lookups. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: reworking led support, making progress
Still hacky code and an issue with writing both grid and touchstrips during the same function. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: remove linux specific /dev/hidraw code
This commit removes #ifdef-ed code out of the driver, relying on libUSB to perform all communication. Testing shows that with the refactored USB code no events are dropped, so there's no reason to not switch to it. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: various fixes, working on reducing complexity
Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: properly cleanup libUSB based interaction
Also nuke some dead code Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: fix feedback sizes for button and slider
This removes "garbage" stuff that was being drawn by eg: device_test as it was reading off the end of an array and representing it as AVTKA widgets.. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017 -
jam: fix touch depart value on touchstrips
Previously, the value would always jump to 0 as the touch-depart event message was interpreted as a value message. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedDec 2, 2017
Commits on Nov 10, 2017
-
Merge pull request openAVproductions#64 from openAVproductions/dev
Fix Screen/LED Strip define conflict, general improvements
harryhaaren committedNov 10, 2017 Verified
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits
Commits on Nov 5, 2017
-
avtka: fix FB_LED_STRIP and FB_SCREEN defines
Previously these two bitmasks had the same value, causing confusion between screens and LED strips when drawn. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedNov 5, 2017
Commits on Nov 3, 2017
-
dev_test: don't accept generic MIDI device
Makes no sense to test a generic MIDI implementation, as the implementation is generic. Ignoring it allows the next driver to create the AVTKA UI - so that this example still serves its purpose. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedNov 3, 2017 -
Merge pull request openAVproductions#57 from openAVproductions/dev
Generic MIDI backend merge, thanks @foolswood and @simonvanderveldt!
harryhaaren committedNov 3, 2017 Verified
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
devices/midi: fix return from 0 to NULL
Thanks for suggestion @foolswood! (relates to pr openAVproductions#57) Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedNov 3, 2017 -
devices/midi: remove dev specific code
This commit removes device-specific defines from the generic MIDI backend. These values are ignored anyway, so this should not impact the operation in any way. Re PR openAVproductions#57, thanks @simonvanderveldt for the review! Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
harryhaaren committedNov 3, 2017