-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rotary encoders #13
Comments
Hi, My apologies for the lack of proper examples or better documentation, the library has gotten really huge, and I have to find ways to combine working on it with my studies. |
Dont apologize
Your work is awesome
Hopefully I can get it sorted
What country are you in?
So I'm not interrupting your sleep from here in Australia
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: tttapa <notifications@github.com>
Sent: Thursday, February 14, 2019 9:03:55 PM
To: tttapa/Control-Surface
Cc: masydoblig; Author
Subject: Re: [tttapa/Control-Surface] rotary encoders (#13)
Hi,
The RotaryEncoder class has been renamed to CCRotaryEncoder.
The interface has been changed as well, you can find the documentation for it here:
https://tttapa.github.io/Control-Surface/Doc/Doxygen/d3/d62/classCCRotaryEncoder.html
My apologies for the lack of proper examples or better documentation, the library has gotten really huge, and I have to find ways to combine working on it with my studies.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#13 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AlaaoZhs9IddeoRjw0f9wDUJP_hXHkxtks5vNTSLgaJpZM4a7Ism>.
|
I'm in Belgium, it's 11:11 am here, no worries :) |
i have tried everything to get the rotary encoder working with no luck either i have the incorrect encoder.H library or i am writing the code incorrect to create a new instance of CCRotaryEncoder any help with an example would be greatly appreciated also in the MCU protocol what midi message is it sending out for the VU meters im hoping i can just send the midi data from cubase (which i can set the type of midi message on) to the controller and get the vu on a shift register working |
I added a rotary encoder example: https://tttapa.github.io/Control-Surface/Doc/Doxygen/d3/d15/CCRotaryEncoder_8ino-example.html
It uses MIDI Channel Pressure events: the high nibble of the data byte is the track (0-7) and the low nibble is the value (0x0-0xC) or clear overload (0xF) or set overload (0xE). 0xD has no meaning. |
ok looking at the code you have put up it i would have to use the mcu mapping RotaryEncoder encoder(2, 3, 0x14, 1, speedMultiply, NORMAL_ENCODER, TWOS_COMPLEMENT);// comes through as a controller on channel 1,address 20 or has this all changed? i.e. CCRotaryEncoder enc ={ The Reason for me to do this is i can do alot more through the generic program function in cubase |
this code below works CCRotaryEncoder enc ={ it functions well and comes though to cubase on Channel 1 address 10 but i cant change channel number |
You have to add curly braces, the address is a single parameter: CCRotaryEncoder enc ={
{2, 3},
{MIDI_CC::Pan, CHANNEL_1},
1,
4,
}; |
Using the generic controller function is also why i was asking about the vu meters when i set it to a Mackie controller in cubase my Vu meter works |
Ok that makes sense you are an awesome dude How did you go with finding some Arduino Nano Boards to test out your faders???? |
Could you check what kinds of messages Cubase sends? The easiest way is to use a MIDI monitor on you computer, alternatively, enable debugging information in Settings.hpp: uncomment lines 17 and 19.
I started working on it, but I don't have the right hardware here right now. |
Can you suggest a MIDI monitor to try i have midi ox installed but it wont get anything from cubase Feel free to Face time me on masydoblig@hotmail.com so you can see it all |
I use MIDI Snoop on Linux, but any monitor that runs on your platform should work. Edit: it seems that the MIDISnoop domain has expired, and is now just spam. It's still in the repositories though: https://packages.ubuntu.com/bionic/sound/midisnoop |
hmmmmm i tried the debug but it wouldnt compile and just had errors and for some reason the midi monitor wont connect when cubase is running |
Did you pull the latest version of the library? |
yep yesterday |
I pushed another change this morning, that should have fixed the debug issues. Did you install the library using git? https://tttapa.github.io/Control-Surface/Doc/Doxygen/d4/d6d/md_Installation.html |
i have just downloaded the new version i might have to give up for the night, Here is what i have so far #include <Encoder.h> // Instantiate a MIDI over USB interface. USBDebugMIDI_Interface midiInterface(115200); const pin_t dataPin = 12; // Pin connected to DS of 74HC595 // Create a new shift register output connected to pins 12, 13 and 10, Channel channel = CHANNEL_1; // Create a new instance of the class CCRotaryEncoder enc = { using namespace MIDI_Notes; // Instantiate the momentary push buttons that send out MIDI Note events. MIDINoteLED leds[] = { void setup() { void loop() { |
Keep the USBMIDI_Interface, don't use the debug interface, just enable debugging in Settings.hpp, see the link in a previous reply: #13 (comment) Then open the Serial monitor and check the incoming messages (prefixed with >>>). |
all good close this issue if you want as the encoder is working well |
Hi Peter
How you going
So i have updated my library to your latest version of control surface
and just going through and changing all the namespaces
but i cant find any examples of the rotary encoder code lines
can you help me out or point me in the right direction where i can find it
i was using the old RotaryEncoder for my pan control and now it throws an error on compiling
says it does not name a type
sorry to bother you with something so trivial (i really am terrible at any form of coding)
and thanks again you have put a lot of time and effort into this code and i really appreciate it
The text was updated successfully, but these errors were encountered: