Skip to content

Commit

Permalink
Add midi support when norns is running
Browse files Browse the repository at this point in the history
  • Loading branch information
Lcchy committed Aug 18, 2021
1 parent f62ad85 commit 7c4f2a8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Eyesy_Norns/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ echo Starting Eyesy
systemctl start eyesy_norns-python.service
systemctl start eyesy-web.service
systemctl start eyesy-web-socket.service
# systemctl start eyesy-pd.service # Deactivated to let norns take over the hardware
systemctl start eyesy-pd-no-hw-ctl.service
2 changes: 1 addition & 1 deletion Eyesy_Norns/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
systemctl stop eyesy_norns-python.service
systemctl stop eyesy-web.service
systemctl stop eyesy-web-socket.service
# systemctl stop eyesy-pd.service
systemctl stop eyesy-pd-no-hw-ctl.service

echo Stoping norns
bash /home/we/sidekick/patches/Norns/stop.sh
Expand Down
10 changes: 7 additions & 3 deletions pd/main.pd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#N canvas 15 106 1890 974 10;
#X obj 190 393 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
#X obj 190 393 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 190 321 packOSC;
#X obj 190 357 udpsend;
Expand Down Expand Up @@ -533,7 +533,7 @@
#X connect 138 0 134 0;
#X connect 138 1 111 0;
#X connect 142 0 0 0;
#X restore 452 406 pd fatesHardwareInput;
#X restore 383 401 pd fatesHardwareInput;
#X text 246 38 This patch controls the video engine via osc;
#N canvas 366 175 1251 1076 metro-and-trig 0;
#N canvas 0 160 1216 609 metronome 0;
Expand Down Expand Up @@ -891,6 +891,8 @@ every second...;
#X obj 942 245 s midiCh;
#X obj 1024 235 s trigSource;
#X obj 865 153 route /shift /midi_ch /trigsource;
#X obj 453 497 spigot 1;
#X obj 502 451 r allowHardwareCtl;
#X connect 0 0 9 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
Expand All @@ -903,7 +905,7 @@ every second...;
#X connect 12 0 4 0;
#X connect 12 0 21 0;
#X connect 13 0 8 0;
#X connect 14 0 17 0;
#X connect 14 0 28 0;
#X connect 16 0 17 0;
#X connect 18 0 17 0;
#X connect 19 0 27 0;
Expand All @@ -914,3 +916,5 @@ every second...;
#X connect 27 0 24 0;
#X connect 27 1 25 0;
#X connect 27 2 26 0;
#X connect 28 0 17 0;
#X connect 29 0 28 1;
12 changes: 12 additions & 0 deletions systemd/eyesy-pd-no-hw-ctl.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Pd OSC hardware bridge for Eyesy

[Service]
Type=simple
WorkingDirectory=/home/we/sidekick/patches/Eyesy
ExecStart=/usr/bin/pd -alsamidi -nogui -noaudio -path /home/we/sidekick/pdexternals -send "; allowHardwareCtl 0" pd/main.pd
User=we
Group=we

[Install]
WantedBy=multi-user.target

0 comments on commit 7c4f2a8

Please sign in to comment.