forked from protonphoton/LJ
Merge branch 'master' into feature-clitools
This commit is contained in:
commit
96f8cbad1a
40
LJ.conf
40
LJ.conf
@ -1,5 +1,5 @@
|
|||||||
[General]
|
[General]
|
||||||
lasernumber = -1
|
lasernumber = 2
|
||||||
debug = 0
|
debug = 0
|
||||||
ljayserverip = 0.0.0.0
|
ljayserverip = 0.0.0.0
|
||||||
wwwip = 192.168.2.43
|
wwwip = 192.168.2.43
|
||||||
@ -10,12 +10,12 @@ autostart = artnet
|
|||||||
[laser0]
|
[laser0]
|
||||||
color = -1
|
color = -1
|
||||||
type = DS1000
|
type = DS1000
|
||||||
ip = 192.168.2.43
|
ip = 192.168.2.4
|
||||||
kpps = 30156
|
kpps = 30156
|
||||||
centerx = 46500
|
centerx = 0
|
||||||
centery = 0
|
centery = 0
|
||||||
zoomx = 294.0
|
zoomx = 40.0
|
||||||
zoomy = 50.0
|
zoomy = 40.0
|
||||||
sizex = 32000
|
sizex = 32000
|
||||||
sizey = 32000
|
sizey = 32000
|
||||||
finangle = 0.0
|
finangle = 0.0
|
||||||
@ -23,19 +23,19 @@ swapx = 1
|
|||||||
swapy = -1
|
swapy = -1
|
||||||
lsteps = [ (1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
|
lsteps = [ (1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
|
||||||
warpdest = [[-1500., 1500.],
|
warpdest = [[-1500., 1500.],
|
||||||
[ 1500., 1500.],
|
[ 1500., 1500.],
|
||||||
[ 1500.,-1500.],
|
[ 1500.,-1500.],
|
||||||
[-1500.,-1500.]]
|
[-1500.,-1500.]]
|
||||||
|
|
||||||
[laser1]
|
[laser1]
|
||||||
color = -1
|
color = -1
|
||||||
type = LOCAL
|
type = LOCAL
|
||||||
ip = 192.168.2.5
|
ip = 192.168.2.43
|
||||||
kpps = 0
|
kpps = 0
|
||||||
centerx = -5707
|
centerx = 0
|
||||||
centery = -838
|
centery = 0
|
||||||
zoomx = 20.0
|
zoomx = 40.0
|
||||||
zoomy = 20.0
|
zoomy = 40.0
|
||||||
sizex = 32000
|
sizex = 32000
|
||||||
sizey = 32000
|
sizey = 32000
|
||||||
finangle = -30.0
|
finangle = -30.0
|
||||||
@ -43,9 +43,9 @@ swapx = -1
|
|||||||
swapy = -1
|
swapy = -1
|
||||||
lsteps = [ (1.0, 2),(0.25, 1), (0.75, 1), (1.0, 5)]
|
lsteps = [ (1.0, 2),(0.25, 1), (0.75, 1), (1.0, 5)]
|
||||||
warpdest = [[-1500., 1500.],
|
warpdest = [[-1500., 1500.],
|
||||||
[ 1500., 1500.],
|
[ 1500., 1500.],
|
||||||
[ 1500.,-1500.],
|
[ 1500.,-1500.],
|
||||||
[-1500.,-1500.]]
|
[-1500.,-1500.]]
|
||||||
|
|
||||||
[laser2]
|
[laser2]
|
||||||
color = -1
|
color = -1
|
||||||
@ -54,8 +54,8 @@ ip = 192.168.2.4
|
|||||||
kpps = 25000
|
kpps = 25000
|
||||||
centerx = 0
|
centerx = 0
|
||||||
centery = 0
|
centery = 0
|
||||||
zoomx = 37.8
|
zoomx = 40.0
|
||||||
zoomy = 13.3
|
zoomy = 40.0
|
||||||
sizex = 30600
|
sizex = 30600
|
||||||
sizey = 32000
|
sizey = 32000
|
||||||
finangle = -4.0
|
finangle = -4.0
|
||||||
@ -74,8 +74,8 @@ ip = 192.168.1.5
|
|||||||
kpps = 25000
|
kpps = 25000
|
||||||
centerx = 0
|
centerx = 0
|
||||||
centery = 0
|
centery = 0
|
||||||
zoomx = 57.0
|
zoomx = 40.0
|
||||||
zoomy = 63.0
|
zoomy = 40.0
|
||||||
sizex = 32000
|
sizex = 32000
|
||||||
sizey = 32000
|
sizey = 32000
|
||||||
finangle = 0.0
|
finangle = 0.0
|
||||||
|
@ -5,7 +5,7 @@ By Sam Neurohack, Loloster, Cocoa
|
|||||||
LICENCE : CC BY
|
LICENCE : CC BY
|
||||||
|
|
||||||
|
|
||||||
![LJ](http://www.teamlaser.tk/lj/images/lj2.png)
|
![LJ](https://www.teamlaser.tk/lj/images/lj2.png)
|
||||||
|
|
||||||
A software laser framework with GUI, for up to 4 lasers live actions with ethedreams DACs. Think creative like Laser "battles", planetarium, sharing available lasers in demoparties for competition, ...
|
A software laser framework with GUI, for up to 4 lasers live actions with ethedreams DACs. Think creative like Laser "battles", planetarium, sharing available lasers in demoparties for competition, ...
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ Important : for best performance LJ is meant to run in a dedicated computer espe
|
|||||||
# Scenes and pointlists.
|
# Scenes and pointlists.
|
||||||
#
|
#
|
||||||
|
|
||||||
![Scenes](http://www.teamlaser.tk/lj/images/scenes.png)
|
![Scenes](https://www.teamlaser.tk/lj/images/scenes.png)
|
||||||
|
|
||||||
LJ accept up to 4 groups = virtual "scenes" of 4 "pointlists" each (= one pointlist per laser), so up to 16 pointlists can be sent to redis at anytime from anywhere in the network. The idea behind this is to easily share actual lasers. Imagine in demo party :
|
LJ accept up to 4 groups = virtual "scenes" of 4 "pointlists" each (= one pointlist per laser), so up to 16 pointlists can be sent to redis at anytime from anywhere in the network. The idea behind this is to easily share actual lasers. Imagine in demo party :
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ Dest1 = lj.DestObject('1', 1, True, 0 , 1, 1)
|
|||||||
|
|
||||||
Dest1 will also send layer 0 points to scene 1, laser 1
|
Dest1 will also send layer 0 points to scene 1, laser 1
|
||||||
|
|
||||||
![Layers](http://www.teamlaser.tk/lj/images/layer.png)
|
![Layers](https://www.teamlaser.tk/lj/images/layer.png)
|
||||||
|
|
||||||
2/ Different layers to different lasers ?
|
2/ Different layers to different lasers ?
|
||||||
|
|
||||||
@ -458,4 +458,4 @@ INVALID -> yellow
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
![LJ](http://www.teamlaser.tk/lj/images/calig.png)
|
![LJ](https://www.teamlaser.tk/lj/images/calig.png)
|
@ -116,26 +116,31 @@ def pack_point(laser, intensity, x, y, r, g, b, i = -1, u1 = 0, u2 = 0, flags =
|
|||||||
#print("Tracer ", laser, ": packing", x, y, r, g, b, "intensity", intensity, "i", i)
|
#print("Tracer ", laser, ": packing", x, y, r, g, b, "intensity", intensity, "i", i)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if x < -32767:
|
if x < -32767:
|
||||||
x = -32767
|
|
||||||
if gstt.debug >1:
|
if gstt.debug >1:
|
||||||
log.err("Tracer "+ str(laser) +" : x coordinates was below -32767")
|
log.err("Tracer "+ str(laser) +" : x coordinates " + str(x) + " was below -32767")
|
||||||
|
x = -32000
|
||||||
|
|
||||||
if x > 32767:
|
if x > 32767:
|
||||||
x = 32767
|
|
||||||
if gstt.debug >1:
|
if gstt.debug >1:
|
||||||
log.err("Tracer "+ str(laser) +" : x coordinates was bigger than 32767")
|
log.err("Tracer "+ str(laser) +" : x coordinates "+ str(x) + " was bigger than 32767")
|
||||||
|
x = 32000
|
||||||
|
|
||||||
|
|
||||||
if y < -32767:
|
if y < -32767:
|
||||||
y = -32767
|
|
||||||
if gstt.debug >1:
|
if gstt.debug >1:
|
||||||
log.err("Tracer "+ str(laser) +" : y coordinates was below -32767")
|
log.err("Tracer "+ str(laser) +" : y coordinates "+ str(y) + " was below -32767")
|
||||||
|
y = -32000
|
||||||
|
|
||||||
|
|
||||||
if y > 32767:
|
if y > 32767:
|
||||||
y = 32767
|
|
||||||
if gstt.debug >1:
|
if gstt.debug >1:
|
||||||
log.err("Tracer "+ str(laser) +" : y coordinates was bigger than 32767")
|
log.err("Tracer "+ str(laser) +" : y coordinates "+ str(y) + " was bigger than 32767")
|
||||||
|
y = 32000
|
||||||
|
|
||||||
|
|
||||||
return struct.pack("<HhhHHHHHH", flags, x, y, r, g, b, i, u1, u2)
|
return struct.pack("<HhhHHHHHH", flags, x, y, r, g, b, i, u1, u2)
|
||||||
#return struct.pack("<HhhHHHHHH", flags, round(x), round(y), r, g, b, i, u1, u2)
|
#return struct.pack("<HhhHHHHHH", flags, round(x), round(y), r, g, b, i, u1, u2)
|
||||||
|
@ -25,7 +25,7 @@ sudo apt install libjack-dev
|
|||||||
pip3 install python-rtmidi
|
pip3 install python-rtmidi
|
||||||
pip3 install mido
|
pip3 install mido
|
||||||
git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && sudo ./setup.py install
|
git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && sudo ./setup.py install
|
||||||
cd ..
|
cd ../
|
||||||
python3 configure.py
|
python3 configure.py
|
||||||
# todo : ask for computer ip and run updateUI.py
|
# todo : ask for computer ip and run updateUI.py
|
||||||
cd /tmp
|
cd /tmp
|
||||||
|
@ -1,36 +1,40 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
brew upgrade
|
brew upgrade
|
||||||
brew install htop
|
|
||||||
#brew install syncthing
|
|
||||||
#brew install python-pip
|
|
||||||
brew install python3-pip
|
brew install python3-pip
|
||||||
brew install git
|
brew install git
|
||||||
brew install redis
|
brew install redis
|
||||||
brew install screen
|
#brew install htop
|
||||||
brew install tmux
|
#brew install syncthing
|
||||||
#pip install numpy
|
#brew install screen
|
||||||
#pip install scipy
|
#brew install tmux
|
||||||
#pip install python-rtmidi
|
|
||||||
#pip install mido
|
|
||||||
pip3 install scipy
|
|
||||||
pip3 install numpy
|
|
||||||
#pip install pygame==1.9.2
|
|
||||||
#pip3 install pygame==1.9.2
|
|
||||||
pip3 install redis
|
|
||||||
pip3 install pysimpledmx
|
|
||||||
pip3 install DMXEnttecPro
|
|
||||||
#brew install libasound2-dev
|
|
||||||
#brew install libjack-dev
|
|
||||||
pip3 install python-rtmidi
|
|
||||||
pip3 install mido
|
|
||||||
#brew install nginx
|
#brew install nginx
|
||||||
#brew install supervisor
|
#brew install supervisor
|
||||||
|
|
||||||
|
pip3 install scipy
|
||||||
|
pip3 install numpy
|
||||||
|
#pip3 install pygame==1.9.2
|
||||||
|
# brew install vulkan-headers
|
||||||
|
pip3 install redis
|
||||||
|
pip3 install pysimpledmx
|
||||||
|
pip3 install DMXEnttecPro
|
||||||
|
brew install libasound2-dev
|
||||||
|
brew install libjack-dev
|
||||||
|
pip3 install python-rtmidi
|
||||||
|
pip3 install mido
|
||||||
|
|
||||||
|
cd ../
|
||||||
|
python3 configure.py
|
||||||
#sudo cp syncthing.conf to /etc/supervisor/conf.d/
|
#sudo cp syncthing.conf to /etc/supervisor/conf.d/
|
||||||
git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && sudo ./setup.py install
|
git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && sudo ./setup.py install
|
||||||
cd /tmp
|
cd /tmp
|
||||||
brew install portaudio19-dev
|
brew install portaudio19-dev
|
||||||
brew install cmake
|
brew install cmake
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ableton link
|
||||||
|
#
|
||||||
|
|
||||||
git clone https://github.com/Ableton/link.git
|
git clone https://github.com/Ableton/link.git
|
||||||
cd link
|
cd link
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
@ -39,12 +43,6 @@ cd build
|
|||||||
cmake ..
|
cmake ..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Ableton link
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
git clone --recursive https://github.com/gonzaloflirt/link-python.git
|
git clone --recursive https://github.com/gonzaloflirt/link-python.git
|
||||||
cd link-python
|
cd link-python
|
||||||
|
Loading…
Reference in New Issue
Block a user