mattorp / synesthesia-ecosystem

This is a place to share, discuss, request, track, and provide feedback for community efforts for Synesthesia.
MIT License
12 stars 3 forks source link

make limit colors automatable #32

Closed mattorp closed 2 years ago

mattorp commented 2 years ago

yroc:

even though storing presets generally covers this, making the values for the limit colors midi accessible/automatable could yield some cool results. e.g. for neon vice a couple times i limited a scene to match the neon vice vibe, and it seemed like being able to manually control this without having to make presets could have been cool. not super passionate about this, just an idea that came up....

https://discord.com/channels/729824270913503374/752022203205287936/752748936699314316

mattorp commented 2 years ago

This can be accomplished with syn-http now.

You can save a script like the one below and execute it to set saved colors. By storing multiple files you can have many different color vibes without storing multiple configs.

You can use 'rgb(r,g,b)' or normalized values (255=1) with comma as the delimiter.

LOW_COLOR='rgb(255,0,0)'
HIGH_COLOR=0.5,0.5,0

HOST=localhost
PORT=6001
URL=http://$HOST:$PORT/controls

curl $URL/limit_colors/1.0
curl $URL/low_color/$LOW_COLOR
curl $URL/high_color/$HIGH_COLOR
mattorp commented 2 years ago

You can combine it with selecting the scene. This way you can save a file that opens the scene and limits the color on running it.

Add this to the script:

SCENE=neon_scene
curl http://$HOST:$PORT/scenes/$SCENE