Moving Faders Without Touch #22
Replies: 2 comments
-
Stripping out the touch-related stuff from Control-Surface-Motor-Fader/Motor-Controller/Controller.hpp Lines 77 to 89 in fe8a54f As you can see, the controller is turned off if the error is low enough, and enough time has passed since the last setpoint change. ( |
Beta Was this translation helpful? Give feedback.
-
Thanks, that is exactly the approach I am working on.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Pieter P ***@***.***>
Sent: Sunday, March 24, 2024 2:20:53 PM
To: tttapa/Control-Surface-Motor-Fader ***@***.***>
Cc: markwinger ***@***.***>; Author ***@***.***>
Subject: Re: [tttapa/Control-Surface-Motor-Fader] Moving Faders Without Touch (Discussion #22)
Stripping out the touch-related stuff from main.cpp should be straightforward enough. Then you'll have to change the logic to disable the controller after the setpoint has been reached:
https://github.com/tttapa/Control-Surface-Motor-Fader/blob/fe8a54f912ea0bac2d75647e6f40e23807e00823/Motor-Controller/Controller.hpp#L77-L89
As you can see, the controller is turned off if the error is low enough, and enough time has passed since the last setpoint change. (activityCount counts the number of time steps since the last setpoint change.)
If the motor is turned off, and the error becomes too large (larger than errThres in absolute value), the motor is turned on again (with some hysteresis to avoid oscillations). I guess in the use case you describe, you'd have to remove this second case where the motor is turned on again, i.e. only a setpoint change should turn on the motor.
—
Reply to this email directly, view it on GitHub<#22 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABNGCREWBBGCA3BKDXQB6QTYZ4KQLAVCNFSM6AAAAABEJFKM5GVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQOJUGQ2DE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have done some similar projects but I am looking at using this project as a base for a new one. I used teensy's before, but this mega328 looks like a nice approach. I have a bunch of faders that do not have touch tracks and want to use them. The project is for a live console, not a DAW. Automation is not the goal, snapshot recall and multiple views is.
So I would like to remove the touch ability, and have midi controllers sent the the host when a fader is moved, and move the faders to the target location when the host is recalling a snapshot or different view.
So the issue is to trigger midi events when a fader is moved instead of when it is touched. Also the motors must turn off quickly after positioning.
I have been looking at this code with this in mind and wondering if anyone sees any difficulty in this approach and any advice before start actually trying to modify the code to work this way.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions