Skip to content

Commit

Permalink
[control] added MIDI->UART control
Browse files Browse the repository at this point in the history
  • Loading branch information
pchdev committed Feb 17, 2023
1 parent b299077 commit 46cb872
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
12 changes: 12 additions & 0 deletions doc/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,15 @@ On **Archlinux**, if you see an error like this one
```

you'll have to rename the `Vivado/2020.2/tps/lnx64/binutils-2.26` (Vitis will then search in the system libraries).
#### Vitis/JAVA problems
On recent systems (or **archlinux**), you might have problems compiling the host-side (**ARM**) application. The problem is caused by system libraries requiring newer versions of GCC than the one provided by Vitis. Replacing GCC target in Vitis' path **by system GCC** works :

```bash
$ cd $XILINX_ROOT_DIR/Vitis/2020.2/lib/lnx64.o/Default
$ mv libstdc++.so.6 libstdc++.so.6.old
$ rm -rf libstdc++.so (symlink)
$ sudo ln -s /usr/lib/libstdc++.so.6 libstdc++.so.6
```

1 change: 1 addition & 0 deletions scripts/sylib.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ proc generate_gui_app { dsp } {
# I guess that's one of the limits of tcl...
set pkgc [exec pkg-config --libs --cflags gtk+-2.0]
lappend pkgc -I$::Syfala::INCLUDE_DIR
lappend pkgc "-lasound"
set cmd "c++ -v -std=c++14 $::Syfala::GUI_DST_FILE $pkgc -o $::Syfala::BUILD_GUI_DIR/faust-gui"
print_info "Executing command: $cmd"
exec {*}$cmd >&@stdout | tee -a $Syfala::BUILD_LOG
Expand Down
14 changes: 11 additions & 3 deletions source/faust/control/gui-controls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#include <faust/gui/GTKUI.h>
#include <faust/gui/meta.h>
#include <faust/dsp/dsp.h>
#include <faust/gui/MidiUI.h>
#include <faust/midi/rt-midi.h>
#include <faust/midi/RtMidi.cpp>

/******************************************************************************
*******************************************************************************
Expand Down Expand Up @@ -38,9 +41,14 @@ int main(int argc, char* argv[])
// UART interface
UARTSenderUI uart_ui;
DSP.buildUserInterface(&uart_ui);
// Start sending

// MIDI interface
rt_midi rt("MIDI");
MidiUI midi_ui(&rt);
DSP.buildUserInterface(&midi_ui);

// start sending & run
uart_ui.start();

// Run
midi_ui.run();
gtk_ui.run();
}

0 comments on commit 46cb872

Please sign in to comment.