marcel-licence / ML_SynthTools

ML_SynthTools
GNU General Public License v3.0
131 stars 20 forks source link

USB_MIDI_ENABLED vs MIDI_USB_ENABLED #31

Closed bradanlane closed 1 year ago

bradanlane commented 1 year ago

There are two definitions - USB_MIDI_ENABLED and MIDI_USB_ENABLED - which appear to be used similarly.

Should these all be one thing or could you explain when each is relevant?

marcel-licence commented 1 year ago

I will remove USB_MIDI_ENABLED because it seems to have no function at all. A document is prepared to explain useable defines: https://github.com/marcel-licence/ML_SynthTools/blob/main/extras/ml_defines.md

bradanlane commented 1 year ago

From digging into the code, I see the following ...

define USB_MIDI_ENABLED // library enabled in ml_SynthTools

define MIDI_USB_ENABLED // local enabled in ml_synth_multi_saw_example

I may have these reversed

Enabling both generate errors compiling the ml_SynthTools

bradanlane commented 1 year ago

USB_MIDI_ENABLED is used within library but MIDI_USB_ENABLED is used in most of the examples

bradanlane commented 1 year ago

I guess USB_MIDI_ENABLED was never being set because the affected code in midi_interface.h has a typo.