-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve Midi Input Part 1 #142
Conversation
Wow midi in how cool! |
Hide whitespace makes it reviewable. So this is working as is now and you'll do the rest on a second commit? |
It is working now as is, the fact there is no setting to disable it is maybe the only reason not to include it as is. As for a setting I was thinking something along the lines of Currently you can add MIDISENDSYNC |
This is great @simotek ! And his is how I implemented the UI so far on picoTracker, my plan is to add field to control MIDI transport and have setting in "MIDI sync" for using external clock in. |
Not relevant for this PR but once the picoTracker has USB Midi working maybe a both option for outputs would make sense, I could see someone hooking one synth up via USB and another via TRS and wanting to control both on separate channels. For lgpt I think its easy enough to do this with OS tools on any devices that actually have multiple midi options. |
This is great! |
Again sorry for the rogue clang-format, you can copy the suggested changes and apply as a patch :) |
The implementation doesn't actually do anything yet but the messages should be handled.
* Use 4 spaces everywhere * Remove extra semicolons
This is so that we can add a midiInDevice in the near future.
* Use 4 spaces * Order header files * Remove extra semicolons
Previously the midi in was only started if the midi device was present in the config. With this change it is now started and updated whenever the project settings change. This includes starting input when a project is loaded if a device is set in the project.
* 4 spaces everywhere * Remove extra semicolons * No space before semicolon
Now that midi devices are created correctly I could actually test this.
rshoulder and lshoulder were the wrong way
* Use 4 spaces for indent everywhere * Put everything in a more sensible order
f05d194
to
e1b2e77
Compare
0194313
to
4cedd8a
Compare
Clang format is done, I also ran it on the header files that go with the .cpp files so there may be some headers with only formatting changes. |
sources/Services/Midi/MidiMessage.h
Outdated
@@ -16,9 +16,6 @@ struct MidiMessage:public I_ObservableData | |||
MIDI_CHANNEL_AFTERTOUCH = 0xD0, | |||
MIDI_PITCH_BEND = 0xE0, | |||
MIDI_MIDI_CLOCK = 0xF0, | |||
MIDI_START = 0xFA, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we get to keep these?
This reverts commit fbebbcf.
On playing project without any MIDI devices connected I get a start/stop loop on X64 |
This issue shows up when the default midi device in project view is set to Midi through:0 Sample log output:
|
Todo in Pt 2: