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

Start SuperDirt on a server other than default s #265

Open
Xon77 opened this issue Apr 11, 2022 · 1 comment
Open

Start SuperDirt on a server other than default s #265

Xon77 opened this issue Apr 11, 2022 · 1 comment

Comments

@Xon77
Copy link

Xon77 commented Apr 11, 2022

Following a question on scsynth, it is not possible to start SuperDirt on a server other than s with the following code, since effect synths are not loaded.

( ~serverT = Server(\LocalT, NetAddr("127.0.0.1", 57115)); ~serverT.options.memSize_(2.pow(18)); ~serverT.waitForBoot { ~dirt.free; ~dirt = SuperDirt.new(2, ~serverT); ~dirt.loadSoundFiles(); ~serverT.sync; ~dirt.start(57120, 0!2); ~serverTWindow = ~serverT.makeWindow; }; )

According to the answer of James Harkins,
"It’s a bug in SuperDirt.

Effects are created by:

		globalEffects.reverseDo { |x|
			x.play(group, outBus, dryBus, globalEffectBus, orbitIndex)
		}

… where group should be the target.

However group is only a node ID and not a Group() object specifying a server. (In Synth *new, the server is determined from target.asTarget.server – but if the given target is an integer, as it is in SuperDirt, then asTarget always goes to the default server.)

So there was an intention to support alternate servers, but accidental non-support of it by group = server.nextPermNodeID; in the Dirt class.
"

@telephon
Copy link
Contributor

telephon commented Apr 13, 2022

I'll think about what is the best way, there is a certain economy to pure numbers, and it would be possible to add the server as an argument to the play method. But maybe group objects are simpler in the end.

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