hagagogu wrote:Thanks for the reply marcos! This doesn't vary the random seed though, so the condition would always be one of 10 values.
Since English is not my native language, maybe I didn't understand correctly what a random seed is. In any case, the possible values the script gives are 0, 0.01, 0.02, ..., 9.98, 9.99, 10, which are taken pseudo-randomly.
I asked Bing AI... in Windows this could be done by the following commands in the PowerShell:
PS wrote:cd 'C:\Program Files\Modartt\Pianoteq 8\'
$random_number = Get-Random
echo $random_number
$divisor = 214748364.7
$condition = $random_number/$divisor
echo $condition
& '.\Pianoteq 8.exe' --set-param Condition=$condition
The description is as follows:
cd 'C:\Program Files\Modartt\Pianoteq 8\': change the actual directory to Pianoteq's
$random_number = Get-Random: gets a random number between 0 and 2147483647, which is 2^31-1
echo $random_number: just prints the number to the screen, it is not necessary
$divisor = 214748364.7: 2147483647/10; in order to get a number between 0 and 10
$condition = $random_number/$divisor: this calculation will 'normalize' the random number between 0 and 10
echo $condition: just check the result
& '.\Pianoteq 8.exe' --set-param Condition=$condition: runs Pianoteq with the condition
All this can be run without typing each time by saving it on a text file with the extension .ps1 (the extension of the Windows' PowerShell).
I have also asked the AI for Linux, but I can't post it here since I don't know if the answer works (I must confess with shame that I have stopped using Linux lately, and at this moment I do not have the devices on which I run it on hand). But if this is what you need, you can try and post the results here...
Marcos
Pianoteq Pro - Bechstein - Blüthner - Grotrian - K2 - Kremsegg 1 & 2 - Petrof - Steingraeber - Steinway B & D - YC5
Kawai CL35 & MP11