Skip to content

Conversation

@elgiano
Copy link

@elgiano elgiano commented Sep 2, 2021

Escape .scd path to prevent errors when path includes spaces.

It affects only *stretch2PlusChannels as it's the only method I found that calls .runInTerminal.
I tested it only on Linux, maybe it was a problem only there?

Issue

TimeStretch.stretch2PlusChannels("Bieber With Spaces", 100, [0,1], 9);
// a new sclang instance spawns in a terminal, but fails with:
// >  file "Bieber" does not exist.
// (instead of "Bieber With Spaces"

This PR solves it by calling thisProcess.formatPathForCmdLine(scdPath) before passing it to terminal.

Escape .scd path to prevent errors when path includes spaces
@elgiano elgiano changed the title stretch2PlusChannels: escape .scd path supercollider: stretch2PlusChannels: escape .scd path Sep 2, 2021
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

Successfully merging this pull request may close these issues.

1 participant