Comments (3)
Is a good idea, but with the downside that the animation might look interrupted because the time is all of a sudden reset to a different position. So smooth motion from oscillators and rotation is broken because of it. Maybe the resyncing should only happen when a new client enters the session, or when Hydra is hush()
-ed.
from flok.
Is a good idea, but with the downside that the animation might look interrupted because the time is all of a sudden reset to a different position. So smooth motion from oscillators and rotation is broken because of it. Maybe the resyncing should only happen when a new client enters the session, or when Hydra is
hush()
-ed.
Hey! Yes, it's not as easy as I thought at first... I guess we'd need to only sync new clients by taking another client as reference. But things can go wrong anyway and drift, so it will never be perfect.
My motivation was mainly solving the use case of having two Hydra windows in the computer, one for rendering in another screen/projector for instance (there are some situations where you don't want to show the code for example, and it'd be great that both windows are synced).
from flok.
I think it could make sense to just have a section in the Flok documentation explaining the option to re-sync hydra visuals amongst clients. If the .time
variable is exposed as a global/window variable it can just be included in the code and run once before a performance starts to allow users to sync up manually if they prefer. I don't know what the variable is in Flok, but in Hydra it can be reset with hydraSynth.synth.time = 0
(in the past it was H.synth.time = 0
)
from flok.
Related Issues (20)
- Hydra `time` global variable seems to be clashing with another `time` from other target (strudel?) HOT 1
- Canvas size is smaller than it should be (compared to official hydra editor)
- Using variables with let/const throws a "not defined" error
- Evaluate web targets in their own sandboxes
- Can't see selected text in editor (local selections only)
- Show web error messages near each pane HOT 1
- Share session with layout + code HOT 1
- Error during flok-repl install with Powershell and Command Prompt (Windows) HOT 2
- Strudel loads twice HOT 1
- Remove a specific editor/panel
- Cheatsheet / Help
- Documentation website
- Have a way to share JS variables between languages (hydra, mercury-web, strudel) HOT 5
- Show flok-repl command for Windows Cmd or Powershell (if browser detects Windows)
- [Hydra] WEBGL mode in P5js HOT 3
- multiple messages HOT 2
- Custom Font / Theme HOT 6
- How to configure `remote_sclang` on Windows HOT 3
- [strudel] AudioWorklet based effects don't work anymore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flok.