Skip to content

Add automatic scaling to loudspeaker weights for plotting #78

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

Merged
merged 2 commits into from
Apr 27, 2016

Conversation

hagenw
Copy link
Member

@hagenw hagenw commented Apr 26, 2016

With 7b46fff we introduced a new weighting to the loudspeakers, which results in relatively low values (<<1) for standard setups. This is of course not a problem, but has a small effect on the plotting of real loudspeaker symbols as those are colored accordingly to the absolute weight of the loudspeaker.

Here is an example from the current master:

conf = SFS_config;
conf.plot.normalisation = 'center';
conf.plot.realloudspeakers = 1;
sound_field_mono_wfs([-2 2],[-2 2],0,[0 2.5 0],'ps',800,conf)

ls_w_old

As you can see more or less all loudspeakers are white.

In this pull request I added an automatic scaling of the loudspeakers (that the maximum weight to 1) to the draw_loudspeaker function, which results in this plot by executing the same commands as above.

ls_w_new

I'm not sure yet if this is the best solution for more complex cases, but I think it is better than before.

@fietew
Copy link
Member

fietew commented Apr 26, 2016

I think its a good idea. In the context of WFS and the secondary source selection its also nice, as the active secondary source would be dark/black and the inactive are white.

Maybe it's a good idea to use the maximum of the absolute value instead of the maximum. I don't know, why there should be any negative loudspeakers weights at the moment. Maybe someone decides to implement some ambisonics panning functions in the future, which may have negative weights.

@hagenw
Copy link
Member Author

hagenw commented Apr 27, 2016

OK, I changed it and will merge it into the master.

@hagenw hagenw merged commit 3bf59ac into master Apr 27, 2016
@hagenw hagenw deleted the plot_loudspeaker_weights branch April 27, 2016 08:01
hagenw added a commit that referenced this pull request May 13, 2016
* master:
  Update license in missing files
  Change license to MIT (#80)
  Make direction_vector() work with matrix => vector
  add modal weighting to time-domain nfchoa (#77)
  Fix comment of tapering_window()
  Add automatic scaling to loudspeaker weights for plotting (#78)
  Update comment of interpolation()

Conflicts:
	SFS_general/delayline.m
hagenw added a commit that referenced this pull request May 26, 2016
* master:
  Update copyright owner to SFS Toolbox Developers
  Update README for online documentation
  Remove wavread and wavwrite (#81)
  Return delay offset from delayline() (#82)
  New Handling of delayline and fractional delay (#50)
  Fix dos line endings
  Update comments for SSR BRS
  Update license in missing files
  Change license to MIT (#80)
  Make direction_vector() work with matrix => vector
  add modal weighting to time-domain nfchoa (#77)
  Fix comment of tapering_window()
  Add automatic scaling to loudspeaker weights for plotting (#78)
  Update comment of interpolation()
  Update NEWS
  Fix interpolation calling bug in interpolation_ir()
  Remove debugging parameter
  Fix normalization for 2D interpolation
  Further improvements to description of interpolation()
  Enhance description for interpolation()

Conflicts:
	SFS_general/direction_vector.m
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

Successfully merging this pull request may close these issues.

2 participants