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

Soundbrowser is throwing an error on custom dirs #193

Open
cleary opened this issue Dec 24, 2022 · 4 comments
Open

Soundbrowser is throwing an error on custom dirs #193

cleary opened this issue Dec 24, 2022 · 4 comments

Comments

@cleary
Copy link

cleary commented Dec 24, 2022

Hi,
I'm getting an error with custom dirs added to the soundbrowser section of the config:

Screenshot_20221225_084244

My config:

$ cat ~/.pulsar/config.cson 
"*":
  core:
    telemetryConsent: "no"
  "exception-reporting":
    userId: "947cea8c-8b73-436c-978b-c10a090876c9"
  tidalcycles:
    soundBrowserFolders: [
      "/home/bernie/.local/share/SuperCollider/downloaded-quarks/Dirt-Samples/"
      "/home/bernie/Nextcloud/Music/tidal/my-samples/"
      "/home/bernie/.local/share/ansible-tidalcycles/git_sample_sets_dir/dirt-jv1080/"
      "/home/bernie/.local/share/ansible-tidalcycles/git_sample_sets_dir/supercontinent/"
      "/home/bernie/.local/share/ansible-tidalcycles/git_sample_individual_dir/"
    ]
  welcome:
    showOnStartup: false

All of these paths are valid, and have worked in the soundbrowser in the past:

$ ll /home/bernie/.local/share/ansible-tidalcycles/git_sample_sets_dir/dirt-jv1080/
total 36
drwxrwxr-x 8 bernie bernie 4096 Jul  4 06:40 ./
drwxrwxr-x 4 bernie bernie 4096 Jul  4 06:40 ../
drwxrwxr-x 8 bernie bernie 4096 Dec 25 08:17 .git/
drwxrwxr-x 2 bernie bernie 4096 Jul  4 06:40 jvgabba/
drwxrwxr-x 2 bernie bernie 4096 Jul  4 06:40 jx/
drwxrwxr-x 2 bernie bernie 4096 Jul  4 06:40 pulse/
drwxrwxr-x 2 bernie bernie 4096 Jul  4 06:40 rash/
-rw-rw-r-- 1 bernie bernie  295 Jul  4 06:40 README.md
drwxrwxr-x 2 bernie bernie 4096 Jul  4 06:40 xx/

Curiously, I don't get the error for the first two directories, but removing the top two lines doesn't change anything (ie the errors still appear):

$ cat ~/.pulsar/config.cson 
"*":
  core:
    telemetryConsent: "no"
  "exception-reporting":
    userId: "947cea8c-8b73-436c-978b-c10a090876c9"
  tidalcycles:
    soundBrowserFolders: [
      "/home/bernie/.local/share/ansible-tidalcycles/git_sample_sets_dir/dirt-jv1080/"
      "/home/bernie/.local/share/ansible-tidalcycles/git_sample_sets_dir/supercontinent/"
      "/home/bernie/.local/share/ansible-tidalcycles/git_sample_individual_dir/"
    ]
  welcome:
    showOnStartup: false
@ndr-brt
Copy link
Collaborator

ndr-brt commented Jan 2, 2023

I'm not able to reproduce it unfortunately... I'm seeing that directory-tree, the component that we're using to build the tree for the sound browser, it's not updated to the latest version, maybe we could update it and see if that fixes the issue.

@ndr-brt
Copy link
Collaborator

ndr-brt commented Mar 1, 2023

@cleary did you tried with the last version of the plugin? It should use the last directory-tree, and maybe that fixed the problem already

@jokroese
Copy link

I'm having the same issue with this on Apple M1.

In SuperCollider, I can use ~dirt.loadSoundFiles("/Users/jo/Music/live-coding/sounds/samples/*/*"); to load my custom samples. In pulsar-tidalcycles, I've tried a wide variation on that folder path to see if the sound browser is expecting the path in a slightly different format but I haven't had any luck yet.

For reference, I've never used the sound browser before so I don't know what it looks like when it is working. However, I get the same [path] is invalid error.

@cleary
Copy link
Author

cleary commented Jul 14, 2023

@cleary did you tried with the last version of the plugin? It should use the last directory-tree, and maybe that fixed the problem already

Sorry I forgot to reply to this -

The problem has changed - I no longer receive an error, but if I have multiple folders defined as per the original issue, the soundbrowser does not show at all.
It works fine with a single directory - (dirt-samples)

I've tried using a , delimiter between items too - no change, soundbrowser still doesn't show

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

3 participants