Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Robert Fraser

Pages: [1] 2 3 ... 7
1
General Board / Re: Trouble with import of audio files in Soundshaper
« on: July 22, 2024, 09:50:20 AM »
Hi Aila,
There are some instructions here about unlinking OneDrive:
https://support.microsoft.com/en-gb/office/turn-off-disable-or-uninstall-onedrive-f32a17ce-3336-40fe-9c38-6efb09f944b0

I would suggest caution before tinkering with any Windows setup though! On my own machine, the link between its internal OneDrive folder and syncing this to the cloud got broken somehow and I'm happy to keep it that way, as I can still access the actual cloud OneDrive by signing in to my Microsoft account in a browser. I've no wish for all my junk files to be sent to the cloud and clog up my limited space there.
 
Previously, you seemed to have set your temp. folder within OneDrive and I really wouldn't recommend this. However, I can't say for sure that this is the root of your problem and it would still be helpful if you could send me one example of a file that won't load. There have been instances in the past where copysfx is not able to read the file and it's important that we can rule this out.

I had wondered initially that slow loading could be the issue, but on re-examining the code Soundshaper does check twice to see if the file is there - after a 1" delay, which is enormously long for a modern computer.
Robert

2
General Board / Re: Trouble with import of audio files in Soundshaper
« on: July 13, 2024, 10:57:01 AM »
Hi Aila, I still don't seem to have received your email. The current email address can be found on the Contacts page at www.soundshaper.net. Looking forward to getting this issue fixed! Robert

3
General Board / Re: Trouble with import of audio files in Soundshaper
« on: July 12, 2024, 10:18:07 AM »
Hi Aila,
No email has come through yet (but sometimes these things are slow).
You've given me the path of your temp folder. I would like to check your CDP programs folder (go to Options | Settings, it should be listed there).
I'm not happy that the temp path has a space in it - could you not rename the \CDP ss\ bit to \CDPss\ ?
Also, your temp folder seems to be using OneDrive - for good reasons no doubt -  but I hope that's not slowing things down if it's syncing to the cloud. That might be the root of the problem.
Thanks,
Robert


4
General Board / Re: Trouble with import of audio files in Soundshaper
« on: July 11, 2024, 08:29:42 PM »
Hi Aila,
Could you send me an example of a file that doesn't work? (Email can be found at soundshaper.net). Also, can you send me a note of the path of your CDP programs.   I need to test this for myself with an actual file.

Thanks,
Robert


5
PC Installation / Re: cant import files
« on: July 11, 2024, 03:20:22 PM »
A small extra observation regarding spaces in names - Soundshaper does in fact support importing source files with a space in the name and a source folder also with a space in the name. (I've just tested this.)  However, I would recommend that the Temp folder should NOT have any spaces in its name.

6
General Board / Re: Trouble with import of audio files in Soundshaper
« on: July 11, 2024, 02:31:08 PM »
Hi Aila, Please see my reply to a similar thread under "PC Installation": Topic: cant import files.

Regarding bass.dll, it simply has to be in the same folder as Soundshaper.exe and the installation puts it there. I'm sorry you had an issue with this and I'm glad your re-installation seems to have fixed it. The Bass library is 3rd-party and it's possible we may need to ship a more up-to-date version, but I've not had problems with it to date. I'd be interested to hear from any others who've had a problem with Bass.

Regarding the copy issue, if there's a fundamental problem, I'd like to get to the bottom of it and fix it, but as I show in the other thread, the command line is very straighforward so I think it will be something else - either incompatible file types or spaces in the file path. How are you "exporting" from Audacity to Soundshaper? I would tend to export from Audacity to some folder and then drag that file into Soundshaper - I don't know of a more direct way.

7
PC Installation / Re: cant import files
« on: July 10, 2024, 09:44:56 AM »
Hi besb1n,  I'm sorry I didn't discover this thread until today. I'm assuming the issue is with Soundshaper on the PC.

Soundshaper uses the CDP function copysfx (rather than Windows copy) to copy your source sound to the temp. folder - typically to a file named ~A_0.wav.  Copysfx supports a wide number of formats and once copied, CDP processes will nornally support the given format (e.g. 16-bit .wav, 32-bit float etc.) It doesn't support .mp3 or .flac though.

However, copysfx runs in Windows' Command Processor which imposes its own constraints. Here are a few things you can test for:

1. Make sure there are no spaces in the source and temp file paths. That applies to both the file name and the file folder.
2. Both the file name and file folder names should conform to ASCII standards - characters like é, ç and ö are not supported (though they may be in Windows).
3. Check the path for CDP programs. The default is \_cdp\_cdprogs within your CDP base folder such as C:\CDPR8.
   Select Options | Settings (or F5) to see the path assigned to CDP Programs and check it is correct.
4. Occasionally with this problem, we've found the user file had a format that copysfx didn't support, though this seems unlikely if no files will copy.
5. For both 3. and 4., try running copysfx directly in the Command Processor:
   Type the name of the drive if different from the one in the prompt, then type cd <folder_name> (put in the name of the source folder. You can copy and paste this from Windows Explorer.) This makes your source folder the current one.
  Then type copysfx <source_filename> ~A_0.wav and see if it works.
6. You can also take a look at the batch file which runs copysfx. It should be in your Temp. folder, called ~A_0.bat and should contain a line like:
   copysfx %1 "E:\SOUNDS\TMP\~A_0.wav"
  (E:\SOUNDS\TMP\ is my own temp folder on this PC. %1 refers to the source file name, which the program substitutes for this variable.)

If none of the above reveal anything useful, we may need to look at a typical file that fails, and the batch file running copysfx, and a screenshot of your settings. You can send these to me via email.

 

8
General Board / Re: Command Line
« on: May 31, 2024, 10:09:16 PM »
There are quite a lot of Command Line and Batch-file examples within the CDP Documentation, but they're not catalogued as such, so are maybe not easy to find (something we can look into).

However, I've thrown together a very basic tutorial on the Command Line and batch files, with examples, and put it here:
https://soundshaper.net/downloads/BasicCDPCommandline.pdf
It also refers to a more detailed document in the CDP documentation and also a couple of useful websites.
This is for Windows. Bash scripts for MacOS are very similar and more versatile, I think.

Batch scripts can be very useful for repeating standard tasks with variations of parameter values and sound files.

9
General Board / Re: Problem running Soundshaper on Windows 11
« on: May 06, 2024, 05:20:20 PM »
When you mentioned the "SETUP PROBLEM" message, it's a pity you didn't list the apparently missing folders. The message means that the value (folder-name) assigned to each of these listed folders is invalid - the folder does not exist.  Several of them are read in from the textfile Soundshaper.cfg - I'm wondering if your student copied an old Soundshaper.cfg file from somewhere and the program is looking for the wrong folders? (It's impossible to tell without the list of missing directories.)  However the one that could be faulty here is actually a fixed one: namely Soundshaper's \BAT sub-folder. If that were wrong for any reason, Soundshaper couldn't read the CmdData file and therefore the parameter pages would show junk instead of proper labels or ranges, exactly as you report.

10
General Board / Re: Problem running Soundshaper on Windows 11
« on: May 04, 2024, 05:49:28 PM »
"Soundshaper works very fine on WINESKIN port for MAC"
This could be very important for MAC users - I looked up Wineskin, but found different versions and I'm not sure which to download. Any help you can give on this, and how to use etc., would be hugely appreciated. 

11
General Board / Re: how to get txt for FOFS?
« on: May 04, 2024, 05:43:37 PM »
Addendum:
In the bash script above, .aiff should ideally be .wav nowadays (infilepchdummy.wav) and CDP is also advocating the use of PVOCEX instead of .ana for freq. analysis files  - i.e. "infile.pvx" instead of "infile.ana".  Pvx ensures compatibility with CSOUND; .ana still works though and is used in Soundshaper, which doesn't support .pvx yet.

For the PC version, check that you have the replacement REPITCH.exe (see post under the "Announce" category).

12
General Board / Re: how to get txt for FOFS?
« on: May 04, 2024, 11:07:37 AM »
The PSOW (FOF) programs require a pitch-trace breakpoint file extracted using PTOBRK WITHZEROS.  And that requires a pitch file (.frq) extracted from a frequency analysis file (.ana), using REPITCH GETPITCH 1.  This is all better put in a little script (Windows CMD batch file or MacOS bash shell script).

Here are two similar scripts: the first kindly supplied by Richard Dobson for bash, and my own batch file (PC) based on Soundshaper. Both make use of arguments supplied on the commandline - particularly the infile and outfile names. Bash scripts have variables $1, $2 and so on, referring to the first, second etc. arguments; the equivalent in CMD batch files is %1, %2, etc.   Both scripts assume a mono input sound.

First, Richard's bash script frqtotext: note the usage "frqtotxt insndfile outtextfile", where outtextfile is the name of the pitch-trace file.

#!/bin/bash
echo frqtotxt.sh - shell script to prepare pitch-brkpnt-data file for
echo                use with a FOF-source file: lengths must match.
if [ $# -ne 2 ]
    then
        echo usage: frqtotxt insndfile outtextfile
        exit 1
fi
echo
echo pvoc anal 1 $1 infile.ana
pvoc anal 1 $1 infile.ana
echo repitch getpitch 1 infile.ana infilepchdummy.aiff infile.frq
repitch getpitch 1 infile.ana infilepchdummy.aiff infile.frq
echo ptobrk withzeros infile.frq $2 20
ptobrk withzeros infile.frq $2 20
echo Delete \(temporary\) files no longer needed:
echo rm infile.ana
rm infile.ana
echo rm infilepchdummy.aiff
rm infilepchdummy.aiff
echo rm infile.frq
rm infile.frq

Now the BAT version, which adds parameter values for the application PSOW STRETCH. In this example the file suffixes are in the script, so would not be supplied on the commandline:

REM %1 is input wav (just the name without .wav); %2 is the output wav (also without .wav)
REM %3 is amount of stretch; %4 is no. of grains
echo ***** PSOW STRETCH BATCH SCRIPT (PC) *****
echo off
REM  Convert wav to ana
pvoc anal 1 %1.wav %1.ana -c1024 -o3
REM Extract pitch
repitch getpitch 1 %1.ana %1pch.ana %1.frq 
REM erase unwanted pitch file             
erase %1pch.ana   
REM Create pitch-trace text file                                   
ptobrk withzeros %1.frq %1.pch 20   
REM Stretch the input sound                     
psow stretch %1.wav %2.wav %1.pch %3 %4   
REM Erase intermediate files...             
if exist %1.ana erase %1.ana                             
if exist %1.frq erase %1.frq                             
if exist %1.brk erase %1.brk
REM Optionally play the output
if exist %2.wav paplay -i %2.wav 

A typical commandline for this might be fofstretch my mystr 2.0 20. For test purposes, put the script in the same folder as the input file.
 

13
General Board / Re: Problem running Soundshaper on Windows 11
« on: May 03, 2024, 05:19:48 PM »
I've done a fresh installation on my wife's Windows 11 laptop. So far, everything seems to run as it should (except for F keys which are presumably set to Windows things).  I did have to get past Windows and the security software not wanting me to run the installation program, but hacked round this.

So far I've tested with modify speed, followed by repitch transpose (to test spectral auto-conversion).

Because of the vast number of CDP processes, Soundshaper reads parameter data from a text file CmdData.txt which must reside in its \BAT sub-folder. Any issue with reading the appropriate setup data from this file will give strange results and messages as you report. So that's the problem - the file is easily replaced if corrupted somehow...  Can your user test first if the file is there, in the correct place?  Have they installed Soundshaper/CDP from fresh or just copied files from someone, which might mean the setup is not right?

It may be necessary to correspond directly to get to the bottom of the issue. Your student is welcome to send me emails in Italian and I can use Google Translate to understand and reply. Email is found here: http://www.ensemble-software.net/links.html

Robert F.

14
General Board / Re: Problem running Soundshaper on Windows 11
« on: May 03, 2024, 03:52:29 PM »
Thanks for your bug report. The parameter pages are clearly not loading for some reason. Not sure at this stage whether this is genuinely a Windows 11 problem or not. I'll test the program on Win11 and report back.

15
Announce / Replacement file for faulty REPITCH program (PC only)
« on: March 27, 2024, 10:05:32 PM »
We've found a fault with the PC version of the program REPITCH, affecting the important GETPITCH function. The version originally distributed with CDP Release 8 (dated 15th March '23) is not working. This also affects further functions which depend on pitch extraction.

An earlier compilation, dated 2 Jan. 2023, appears to work as intended, however. You can download it here: https://www.soundshaper.net/downloads/repitch.zip
In your CDP programs folder, simply replace the 15th March '23 version of repitch.exe (if that is what you have) with the January one.

For new users, the PC program set for Release 8 will be updated tomorrow with the working version.

Pages: [1] 2 3 ... 7