CDP and Supercollider - it is installed but does not read sound files

Started by giuliarrr, January 28, 2025, 09:39:48 PM

Previous topic - Next topic

giuliarrr

Hello, I am using the CDP command-line functions in SuperCollider. I am used to work with that since few years on my previous Mac Intel, but now I just installed it on my new MacOS (cdp8). Soundloom seems to work correctly and also the command line functions are recognised when I evaluate them in SuperCollider. However, whatever sound file I try to process, it gives me an error saying: INVALID DATA, "Can't open file/...". Even though I am using sound files that were perfectly working with cdp7 (wav mono files, 48000 sample rate, 24bit).
Could this be related to the installing process ? Or any other ideas ?
Thank you.
Giulia


simonk

Hi,
It is not quite clear from your question if you can run CDP processes from the command prompt outside Supercollider
Have you run the command detailed in the CDP Installation Notes?

'Run Terminal (it starts in your home directory) and at the command prompt,
type (followed by pressing Enter; note the spaces):
xattr -rc cdpr8
(The -r flag signifies "recursive" - it will visit every file and folder inside cdpr8, releasing, so to speak, all executable files and apps from Quarantine.)'

Simon



giuliarrr

Hi Simon,
thanks for you reply. Yes when I installed it I typed the command prompt xattr - rc cdpr8 in the Terminal, with the correct spaces. I did it also now but nothing happens. Does it mean that there is some problem with the installation process and cdp isn't correctly installed ? It's weird because I carefully followed the instructions. Could it depend from my Mac Silicon processor (mac M2) ?


simonk

Hi Guiliarr
I would just like to check that your install is working.

Please,in a Terminal window enter 'sndinfo' (no quotes)
& see what you get.
It should give you -
'CDP release 7.1.2016'. and the usage of sndinfo.

If that is ok I wonder if your original problematic sound file has spaces in the name?

Note: We have been testing & building all the CDP software on Mac silicon for the past year or so. There may well be bugs somewhere however....

Please feel free to keep me updated.

Simon

giuliarrr

Hi Simon,
I typed sndinfo in the Terminal and this is what I got:

CDP Release 7.1 2016
USAGE: sndreport NAME (mode) infile(s) (outfile) (parameters)

where NAME can be any one of

props     len        lens      sumlen      timediff
smptime   timesmp    maxsamp   maxsamp2    loudchan    findhole
diff      chandiff   prntsnd   units       maxi        zcross

Type 'sndreport timediff'  for more info on info timediff option... ETC.

But I am confused because I am installing CDP 8. 
What does it mean ?

Thanks for your assistance.

Giulia

giuliarrr

Ah and all the soundfile names that I have been trying do not have any spaces and they are the same I was using with CDP7 on my Mac Intel.
Thanks,
Giulia

simonk

Quote from: giuliarrr on February 02, 2025, 12:11:41 PMBut I am confused because I am installing CDP 8. 
What does it mean ?

Yes, well spotted !
I noticed that too, I think it's a legacy thing.
Many of the fully operational CDP prgs have not had their headers updated as they are not new versions.
 I'll flag that up anyway.

But it does look as though you have a fully working CDP system. So I'm not sure that the problem can be attributed to the CDP software.
Have you tried asking on the Supercollider forum?

Maybe you could try some other sound files with differing formats.
I am sorry but I'm not a Supercollider user these days, so not much help to you there.

Simon


giuliarrr

Quote from: simonk on February 02, 2025, 12:30:45 PMYes, well spotted !
I noticed that too, I think it's a legacy thing.
Many of the fully operational CDP prgs have not had their headers updated as they are not new versions.
 I'll flag that up anyway.

Ok, good to know!

Quote from: simonk on February 02, 2025, 12:30:45 PMMaybe you could try some other sound files with differing formats.

I am trying with mono files, wav format, both in 48000 sr - 24 bit and 44.100 sr - 16 bit. nothing works.
I have also asked now in the SC forum, hopefully someone can help.

Will post here whenever I will have solved it, thank you anyways :)