REW Beta Release REW API beta releases

John Mulcahy

REW Author
Thread Starter
Joined
Apr 3, 2017
Posts
8,052
Builds updated today (beta 44) with these changes:
  • Added: Measurement groups can be assigned a colour
  • Added: Clicking on the Max SPL figure at the bottom of the main REW window will open the cal settings panel for the input
  • Changed: New measurement group dialog allows notes and colour to be specified when creating the group
  • Changed: Use a subscript for the musical note octave when using American notation
  • Changed: Sample format info in the status bar includes the buffer size when using ASIO
  • Fixed: Graph selection shortcuts did not work on the Overlays windows when focus was on the measurements list
  • Fixed: Sample rate was only shown in the status bar when it changed
  • Fixed: IllegalArgumentException when selecting a group
 

krizma

Registered
Joined
Jul 2, 2024
Posts
2
Is it possible to perform measurements in the standard version of REW via API? Or is this feature only available in the Pro version?
 

John Mulcahy

REW Author
Thread Starter
Joined
Apr 3, 2017
Posts
8,052
Is it possible to perform measurements in the standard version of REW via API? Or is this feature only available in the Pro version?
Sweep measurements via the API requires a Pro upgrade. It's mainly used by manufacturers for automated test.
 

serko70

Member
Joined
Oct 13, 2017
Posts
294
Location
Germany
More  
Preamp, Processor or Receiver
Marantz SR6015
Main Amp
Rotel Michi X3
DAC
Oppo 205
Computer Audio
Intel NUC
Universal / Blu-ray / CD Player
Oppo 205
Streaming Subscriptions
TIDAL, ROON
Front Speakers
Focal Kanta 2
Center Channel Speaker
Linn Trikan
Surround Speakers
Focal Dome Flax
Surround Back Speakers
Focal Dome Flax
Front Height Speakers
Focal Dome Flax
Rear Height Speakers
Focal Dome Flax
Subwoofers
Focal Sub Air
Video Display Device
LG 65 3D OLED
Would it be possible to run multiple REW instances in AWS as is and or would it require major changes to install?
I am totally lost in multiple AWS methods and documentation regarding something like this.
 

Dr.OP

Moderator
Staff member
Joined
Jul 11, 2023
Posts
22
Would it be possible to run multiple REW instances in AWS as is and or would it require major changes to install?
I am totally lost in multiple AWS methods and documentation regarding something like this.
A very rough idea. It would require some manual startup.
- spin up a Linux distro
- setups multiple users
- install rew for each user locally
- start rew api server for each user session on a different port
- call rew api from the server


In this setup each rew instance is insulated in its own user space with individual rew settings.

I have no experience with AWS so I’m not sure how you can call it from anywhere. If you can get a unique server url it will solve the problem.
 

serko70

Member
Joined
Oct 13, 2017
Posts
294
Location
Germany
More  
Preamp, Processor or Receiver
Marantz SR6015
Main Amp
Rotel Michi X3
DAC
Oppo 205
Computer Audio
Intel NUC
Universal / Blu-ray / CD Player
Oppo 205
Streaming Subscriptions
TIDAL, ROON
Front Speakers
Focal Kanta 2
Center Channel Speaker
Linn Trikan
Surround Speakers
Focal Dome Flax
Surround Back Speakers
Focal Dome Flax
Front Height Speakers
Focal Dome Flax
Rear Height Speakers
Focal Dome Flax
Subwoofers
Focal Sub Air
Video Display Device
LG 65 3D OLED
A very rough idea. It would require some manual startup.
- spin up a Linux distro
- setups multiple users
- install rew for each user locally
- start rew api server for each user session on a different port
- call rew api from the server


In this setup each rew instance is insulated in its own user space with individual rew settings.

I have no experience with AWS so I’m not sure how you can call it from anywhere. If you can get a unique server url it will solve the problem.
AWS seem to be more than capable to do this but the methods seem to have changed regularly with different and confusing instructions for each. It would be nice to access REW API features remotely from a mobile phone however even if John permits this and we can achieve to run it smoothly, I guess there would still be significant CPU time charges from AWS.
 

John Mulcahy

REW Author
Thread Starter
Joined
Apr 3, 2017
Posts
8,052
It would be nice to access REW API features remotely from a mobile phone
REW's API is only accessible locally on the machine to avoid security issues. To access it remotely you would need to install some intermediate application of your own which provides external access.
 

Urfa

New Member
Joined
Jul 22, 2024
Posts
5
Hi,

A newbie here, so beg I a pardon for silly questions...

What is the correct sequence to interpret data you get from /measurements/:id/frequency-response request, so it looks similar to the data you get from export:
Ex.:
* Freq(Hz) SPL(dB) Phase(degrees)
50.170898 71.805 -99.2510
50.534457 71.894 -99.5247

Decode Base64 => Convert bytes to float => xxx ?
 

Urfa

New Member
Joined
Jul 22, 2024
Posts
5
Oh man, it's already described in the API documentation. I need to consider eyesight check:rubeyes:

Array encoding​

Arrays are transferred as Base64-encoded strings generated from the raw bytes of the 32-bit float sample values. Base64 decoding is well supported in programming languages, here is how to recover the arrays in Java:

public static float[] decodeArray(String base64Encoded) {
return byteToFloatArray(Base64.getDecoder().decode(base64Encoded));
}

private static float[] byteToFloatArray(byte[] bytes) {
FloatBuffer buf = ByteBuffer.wrap(bytes).asFloatBuffer();
float[] floatArray = new float[buf.limit()];
buf.get(floatArray);
return floatArray;
}
One more little question - how to acquire corresponding frequency besides the magnitude and the phase?
 

John Mulcahy

REW Author
Thread Starter
Joined
Apr 3, 2017
Posts
8,052
One more little question - how to acquire corresponding frequency besides the magnitude and the phase?
The FrequencyResponse object returned has a start frequency (the frequency of the first point in the array) and either a points per octave figure for log spaced data or a frequency step figure for linearly spaced data to determine the frequency for subsequent points. For log data the frequency at any index (starting from index 0) is
Code:
double freq = startFreq*Math.exp(index*Math.log(2)/PPO)
 

John Mulcahy

REW Author
Thread Starter
Joined
Apr 3, 2017
Posts
8,052
Builds updated today (beta 45) with these changes:
  • Changed: Use frequency-dependent windows to reduce the noise floor of sweep distortion measurements
  • Fixed: Index out of bounds when saving an RTA peak measurement with multiple inputs and group averages enabled
The windowing change for distortion results prevents the rising noise floor with frequency that previously occurred, substantially lowering the noise floor.
 

John Mulcahy

REW Author
Thread Starter
Joined
Apr 3, 2017
Posts
8,052
Builds updated today (beta 46) with these changes:
  • Added: A new group can be generated from the Measure dialog
  • Fixed: Long group names could disrupt the Measure dialog layout
  • Fixed: Sweep distortion noise floor could be plotted too high
 

Breeman

Member
Joined
Jan 9, 2019
Posts
186
Hi John,

Is there a way to toggle the black, phase response graph on or off within the Alignment Tool?
Snap1.png
 

serko70

Member
Joined
Oct 13, 2017
Posts
294
Location
Germany
More  
Preamp, Processor or Receiver
Marantz SR6015
Main Amp
Rotel Michi X3
DAC
Oppo 205
Computer Audio
Intel NUC
Universal / Blu-ray / CD Player
Oppo 205
Streaming Subscriptions
TIDAL, ROON
Front Speakers
Focal Kanta 2
Center Channel Speaker
Linn Trikan
Surround Speakers
Focal Dome Flax
Surround Back Speakers
Focal Dome Flax
Front Height Speakers
Focal Dome Flax
Rear Height Speakers
Focal Dome Flax
Subwoofers
Focal Sub Air
Video Display Device
LG 65 3D OLED
No, but I can add one in the next build.
Can you also add the new "Better delay" metric shown in Alignment tool to alignment-tool/result API?
 

thothsong

Member
Joined
Jun 29, 2021
Posts
405
Dragging a measurement to rearrange the order doesn't seem to work when it's in a group; is that intentional?
 

John Mulcahy

REW Author
Thread Starter
Joined
Apr 3, 2017
Posts
8,052
Dragging a measurement to rearrange the order doesn't seem to work when it's in a group; is that intentional?
Seems to work fine for me. Which graph are you viewing? Have you selected just one measurement to move or are other measurements in the group selected?
 
Top Bottom