Skip to content

Commit

Permalink
Merge pull request #51 from polimi-ispl/develop
Browse files Browse the repository at this point in the history
Release 1.1.2
  • Loading branch information
luca-bondi authored May 16, 2020
2 parents 6bd08ec + 2b23e37 commit 3e23432
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 40 deletions.
16 changes: 8 additions & 8 deletions JuceLibraryCode/AppConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@
#define JucePlugin_Enable_IAA 0
#endif
#ifndef JucePlugin_Name
#define JucePlugin_Name "eBeamer"
#define JucePlugin_Name "Ebeamer"
#endif
#ifndef JucePlugin_Desc
#define JucePlugin_Desc "eStick beam controller"
#define JucePlugin_Desc "Estick beam controller"
#endif
#ifndef JucePlugin_Manufacturer
#define JucePlugin_Manufacturer "ISPL and Eventide"
Expand Down Expand Up @@ -390,13 +390,13 @@
#define JucePlugin_EditorRequiresKeyboardFocus 0
#endif
#ifndef JucePlugin_Version
#define JucePlugin_Version 1.1.1
#define JucePlugin_Version 1.1.2
#endif
#ifndef JucePlugin_VersionCode
#define JucePlugin_VersionCode 0x10101
#define JucePlugin_VersionCode 0x10102
#endif
#ifndef JucePlugin_VersionString
#define JucePlugin_VersionString "1.1.1"
#define JucePlugin_VersionString "1.1.2"
#endif
#ifndef JucePlugin_VSTUniqueID
#define JucePlugin_VSTUniqueID JucePlugin_PluginCode
Expand All @@ -414,10 +414,10 @@
#define JucePlugin_AUSubType JucePlugin_PluginCode
#endif
#ifndef JucePlugin_AUExportPrefix
#define JucePlugin_AUExportPrefix ebeamerAU
#define JucePlugin_AUExportPrefix EbeamerAU
#endif
#ifndef JucePlugin_AUExportPrefixQuoted
#define JucePlugin_AUExportPrefixQuoted "ebeamerAU"
#define JucePlugin_AUExportPrefixQuoted "EbeamerAU"
#endif
#ifndef JucePlugin_AUManufacturerCode
#define JucePlugin_AUManufacturerCode JucePlugin_ManufacturerCode
Expand Down Expand Up @@ -465,7 +465,7 @@
#define JucePlugin_IAASubType JucePlugin_PluginCode
#endif
#ifndef JucePlugin_IAAName
#define JucePlugin_IAAName "ISPL and Eventide: eBeamer"
#define JucePlugin_IAAName "ISPL and Eventide: Ebeamer"
#endif
#ifndef JucePlugin_VSTNumMidiInputs
#define JucePlugin_VSTNumMidiInputs 16
Expand Down
6 changes: 3 additions & 3 deletions JuceLibraryCode/JuceHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
#if ! JUCE_DONT_DECLARE_PROJECTINFO
namespace ProjectInfo
{
const char* const projectName = "eBeamer";
const char* const projectName = "Ebeamer";
const char* const companyName = "ISPL and Eventide";
const char* const versionString = "1.1.1";
const int versionNumber = 0x10101;
const char* const versionString = "1.1.2";
const int versionNumber = 0x10102;
}
#endif
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

eBeamer: eStick beamforming VST3 plug-in
Ebeamer: Estick beamforming VST3 plug-in
Copyright (C) 2020 Image and Sound Processing Lab, Politecnico di Milano
Copyright (C) 2020 Eventide Inc.

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# eBeamer
A JUCE-based VST3 plug-in and standalone application to support the [eStick](https://www.facebook.com/estickproject) project.
# Ebeamer
A JUCE-based VST3 plug-in and standalone application to support the [Estick](https://www.facebook.com/estickproject) project.

![The eBeamer](docs/gui.png)

## Getting Started
- Just want to try out the VST or the app? Go the the [release](https://github.com/listensmart/ebeamer/releases) page.
- A demo REAPER project is available [here](docs/eBeamerDemo.rpp).
- A demo REAPER project is available [here](docs/EbeamerDemo.rpp).
- If you're not familiar with JUCE, [this](https://juce.com/learn) is a good place to start.
- If you're developing on Windows, download and extract the [ASIO ASK](https://www.steinberg.net/en/company/developers.html) in the *ASIO/* folder.
- Don't have the eSticks yet? Start developing with the [eStick simulator](https://github.com/luca-bondi/estick-simulator).
- Don't have the Esticks yet? Start developing with the [Estick simulator](https://github.com/luca-bondi/estick-simulator).

## Contributing
- Any contribution to the project is highly appreciated! Get in touch to know more.
Expand Down
2 changes: 1 addition & 1 deletion Source/Beamformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Beamformer::Beamformer(int numBeams_, MicConfig mic, double sampleRate_, int max
}

Beamformer::~Beamformer() {
doaThread->stopThread(500);
doaThread->stopThread(3000);
}

MicConfig Beamformer::getMicConfig() const {
Expand Down
3 changes: 2 additions & 1 deletion Source/BeamformingAlgorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ namespace DAS {
soundspeed = soundspeed_;

commonDelay = 64;
firLen = ceil(jmax(numMic/numRows * micDistX,numRows * micDistY) / soundspeed * fs) + 2 * commonDelay;
const float maxDistBetweenMics =sqrt(pow((numMicPerRow-1) * micDistX,2.f)+pow((numRows-1) * micDistY,2.f));
firLen = maxDistBetweenMics / soundspeed * fs + commonDelay;

fft = std::make_unique<juce::dsp::FFT>(ceil(log2(firLen)));

Expand Down
8 changes: 4 additions & 4 deletions Source/MeterComp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ void MultiChannelLedBar::resized() {
auto num = values.size();
Rectangle<int> area = getLocalBounds();

int step = isHorizontal ? floor(area.getWidth() / num) : floor(area.getHeight() / num);
int otherDim = isHorizontal ? area.getHeight() : area.getWidth();
float step = isHorizontal ? floor(area.getWidth() / num) : floor(area.getHeight() / num);
float otherDim = isHorizontal ? area.getHeight() : area.getWidth();
otherDim = jmin(otherDim, step - 1);

const auto areaCtr = area.getCentre();

// Re-center the area
if (isHorizontal) {
area.setWidth((int) (step * num));
area.setWidth(step * num);
area.setHeight(otherDim);
} else {
area.setHeight((int) (step * num));
area.setHeight(step * num);
area.setWidth(otherDim);
}
area.setCentre(areaCtr);
Expand Down
2 changes: 1 addition & 1 deletion Source/MeterDecay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MeterDecay::MeterDecay(float fs, float duration, float blockSize, int numChannel
void MeterDecay::push(const AudioBuffer<float> &signal) {
GenericScopedLock<SpinLock> l(minMaxCircularBufferLock);

for (auto channelIdx = 0; channelIdx < signal.getNumChannels(); ++channelIdx) {
for (auto channelIdx = 0; channelIdx < jmin((int)signal.getNumChannels(),(int)minMaxCircularBuffer.size()); ++channelIdx) {
Range<float> minMax = FloatVectorOperations::findMinAndMax(signal.getReadPointer(channelIdx),
signal.getNumSamples());
float maxAbs = jmax(abs(minMax.getStart()), abs(minMax.getEnd()));
Expand Down
6 changes: 3 additions & 3 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void EBeamerAudioProcessorEditor::paint(Graphics &g) {
versionArea.removeFromBottom(2);
g.setColour(Colours::lightgrey);
g.setFont(12);
g.drawText("ISPL and Eventide - eBeamer v" + String(JucePlugin_VersionString), versionArea,
g.drawText("ISPL and Eventide - Ebeamer v" + String(JucePlugin_VersionString), versionArea,
Justification::centredBottom, false);

}
Expand Down Expand Up @@ -329,8 +329,8 @@ void EBeamerAudioProcessorEditor::resized() {
hpfSlider.setBounds(area.removeFromTop(INPUT_HPF_SLIDER_HEIGHT).withTrimmedLeft(INPUT_HPF_LABEL_WIDTH));

auto inputLedArea = area.removeFromTop(INPUT_LED_HEIGHT);
inputLedArea.removeFromLeft(INPUT_LEFT_RIGHT_MARGIN);
inputLedArea.removeFromRight(INPUT_LEFT_RIGHT_MARGIN);
inputLedArea.removeFromLeft(INPUT_LEFT_RIGHT_MARGIN+4);
inputLedArea.removeFromRight(INPUT_LEFT_RIGHT_MARGIN+23);
inputMeter.setBounds(inputLedArea);

gainSlider.setBounds(area.removeFromTop(INPUT_GAIN_SLIDER_HEIGHT).withTrimmedLeft(INPUT_GAIN_LABEL_WIDTH));
Expand Down
5 changes: 3 additions & 2 deletions Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ bool EbeamerAudioProcessor::isBusesLayoutSupported(const BusesLayout &layouts) c
}
}

if ((layouts.getMainInputChannels() < 2) || (layouts.getMainOutputChannels() < 2)) {
// In any case don't allow less than 2 input and 2 output channels
if ((layouts.getMainInputChannels() < 1) || (layouts.getMainOutputChannels() < 2)) {
// In any case don't allow less than 1 input and 2 output channels
return false;
}
return true;
Expand Down Expand Up @@ -307,6 +307,7 @@ void EbeamerAudioProcessor::processBlock(AudioBuffer<float> &buffer, MidiBuffer
return;
}


ScopedNoDenormals noDenormals;

/**Apply input gain directly on input buffer */
Expand Down
14 changes: 7 additions & 7 deletions docs/eBeamerDemo.rpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<REAPER_PROJECT 0.1 "6.09/OSX64" 1588749974
<REAPER_PROJECT 0.1 "6.09/OSX64" 1589620479
RIPPLE 0
GROUPOVERRIDE 0 0 0
AUTOXFADE 1
Expand Down Expand Up @@ -84,7 +84,7 @@
<PROJBAY
>
<TRACK {A0265485-635B-0140-9721-26A2F8AE371A}
NAME eBeamer
NAME Ebeamer
PEAKCOL 16576
BEAT -1
AUTOMODE 0
Expand All @@ -96,8 +96,8 @@
BUSCOMP 0 0 0 0 0
SHOWINMIX 1 0.6667 0.5 1 0.5 0 0 0
FREEMODE 0
SEL 0
REC 0 0 1 0 0 0 0
SEL 1
REC 0 2048 1 0 0 0 0
VU 2
TRACKHEIGHT 132 0 0
INQ 0 0 0 0.5 100 0 0 100
Expand All @@ -109,11 +109,11 @@
MAINSEND 1 0
<FXCHAIN
WNDRECT 2830 446 779 906
SHOW 1
SHOW 0
LASTSEL 0
DOCKED 0
BYPASS 0 0 0
<VST "VST3: eBeamer (ISPL and Eventide)" eBeamer.vst3 0 "" 400171428{ABCDEF019182FAEB4973706C65626561} ""
<VST "VST3: Ebeamer (ISPL and Eventide)" eBeamer.vst3 0 "" 400171428{ABCDEF019182FAEB4973706C65626561} ""
pCHaF+5e7f5AAAAAAQAAAAAAAAACAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAAABAAAAAAAAAAIAAAAAAAAABAAA
AAAAAAAIAAAAAAAAABAAAAAAAAAAIAAAAAAAAABAAAAAAAAAAIAAAAAAAAAAAAEAAAAAAAAAAgAAAAAAAAAEAAAAAAAAAAgAAAAAAAAAEAAAAAAAAAAgAAAAAAAAAEAA
AAAAAAAAgAAAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAAABAAAAAAAAAAIAAAAAAAAA
Expand All @@ -138,7 +138,7 @@
>
PRESETNAME "Factory Presets"
FLOATPOS 0 0 0 0
FXID {91C0988A-15B9-8343-9133-FCD73000D650}
FXID {A485AA7B-0EC5-BE44-89C9-7DC41333349B}
WAK 0 0
>
>
Expand Down
Binary file modified docs/gui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions eBeamer.jucer
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>

<JUCERPROJECT id="NEjZ3r" name="eBeamer" projectType="audioplug" jucerVersion="5.4.7"
<JUCERPROJECT id="NEjZ3r" name="Ebeamer" projectType="audioplug" jucerVersion="5.4.7"
companyName="ISPL and Eventide" pluginFormats="buildStandalone,buildVST3"
pluginVST3Category="Spatial" pluginAAXCategory="512" pluginRTASCategory="512"
pluginVSTCategory="kPlugCategSpacializer" pluginAUMainType="'aufx'"
pluginName="eBeamer" pluginDesc="eStick beam controller" pluginManufacturer="ISPL and Eventide"
pluginManufacturerCode="Ispl" pluginCode="ebea" version="1.1.1"
pluginName="Ebeamer" pluginDesc="Estick beam controller" pluginManufacturer="ISPL and Eventide"
pluginManufacturerCode="Ispl" pluginCode="ebea" version="1.1.2"
bundleIdentifier="it.polimi.deib.ispl.ebeamer" companyWebsite="http://ispl.deib.polimi.it/"
aaxIdentifier="it.polimi.deib.ispl.ebeamer" pluginAUExportPrefix="ebeamerAU"
aaxIdentifier="it.polimi.deib.ispl.ebeamer" pluginAUExportPrefix="EbeamerAU"
pluginCharacteristicsValue="pluginWantsMidiIn" headerPath="..\..\ASIO\common"
companyCopyright="2020 ISPL and Eventide">
<MAINGROUP id="X7PQw9" name="eBeamer">
<MAINGROUP id="X7PQw9" name="Ebeamer">
<GROUP id="{3D6AD065-0387-5993-02F4-EFEE30370E91}" name="Eigen">
<GROUP id="{AEBD6D17-0D9F-6422-FDAF-3B90144ABB2C}" name="src">
<GROUP id="{E9A98149-22CD-0FBA-1B1C-79BA5428D3CF}" name="Cholesky">
Expand Down

0 comments on commit 3e23432

Please sign in to comment.