Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New nodes are added very far away from existing ones #193

Open
yurivict opened this issue Mar 23, 2023 · 8 comments
Open

New nodes are added very far away from existing ones #193

yurivict opened this issue Mar 23, 2023 · 8 comments

Comments

@yurivict
Copy link

After I ran qsynth the graph looks like this:
image

I had to zoom out to find the new node. Now it has to be moved manually.

qjackctl places nodes very far from existing ones.
It should choose a more reasonable position.

Eben if the item of the same kind has been previously added - the previous position should be ignored when it is far from currently displayed nodes. (I am not sure if that's what the problem is.)

I remember reporting this a while ago, but somehow the problem is still there.

qjackctl-0.9.10
FreeBSD 13.1

@rncbc
Copy link
Owner

rncbc commented Mar 24, 2023

please, for once and every time an old node comes into that far, probably because its position was saved on previous runs, bring all the nodes closer together and quit--their last positions will be saved and the whole scene will be shorter/narrower, placing new nodes under closer limits the next time you run qjackctl.

a radical suggestion would be to start on a brand new conf file (~/.config/rncbc.org/QjackCtl.conf); or, on a less radical one, edit the conf file and remove the whole [GraphNodePos] section only. (IMPORTANT: do any of this only when qjackctl is NOT running)

@yurivict
Copy link
Author

[...] an old node comes into that far, probably because its position was saved on previous runs [...]

But this isn't a desirable behavior. This node may have been a part of a 300-node graph before and therefore it may have been far away. And now it is a part of a 3-node graph. Its previous position should be ignored in such case.

@rncbc
Copy link
Owner

rncbc commented Mar 24, 2023

it can't (be ignored), unless you remove its old position (prolly from old previous qjackctl:graph versions which were, say virtually boundless...)

@yurivict
Copy link
Author

it can't (be ignored) [...]

Why? You can just ignore it in the code.

@rncbc
Copy link
Owner

rncbc commented Mar 24, 2023

that's not the point: it was saved before (don't know when in time) with some position--doesn't matter how far or close it was--and [qjackctl:graph] has no other option than honor that position. sorry.

go with the radical or the not so radical suggestions.

@yurivict
Copy link
Author

[...] has no other option than honor that position. sorry.

What prevents it from having another option?

@rncbc
Copy link
Owner

rncbc commented Mar 24, 2023

the other option has already been posed: erasing its memory in the conf file.

@yurivict
Copy link
Author

the other option has already been posed: erasing its memory in the conf file.

But the point is that erasing config file isn't a user-friendly way. Simple users would be terrified and challenged by this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants