Skip to content

Commit

Permalink
README updates, prevent changing FFT while processing it
Browse files Browse the repository at this point in the history
cameronleger committed Mar 19, 2019
1 parent a73193d commit 25d63bd
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -18,8 +18,8 @@ script:
deploy:
provider: releases
api_key:
secure: hU89GV0HyjAc3QVWvBbDpaGTG/N/GIO3aU43b18zcvx+Qo8qGVQoKLJr1QLxoMcDU7D6/H9gO5Uc8ItoE4aANMO04qYcc7ED4o7l60JU4LN4iKDpAXccJBcDdQwu3IV8h3w/Qqx+jYoznI4As2kCTw0H1jPyuWRlE/JqqCd96unQ6BdUCLV/hICl1BaAughNdTTmywATptf6w/zKuNnAUi9Y4Njd6n4TwvBF/Cnz6pY7RYBWFVPeCRIPE0tIGTgOZPxOHij0MUc+G6IQxb9K5+UBArTRf7LJ7eM3yTIpDeMwd2r9SH3B5oXWganbs+mQifbdbVnvcu4n+quO7tHXeawb+G0oYG3i21qhyBZVbYRcw8PUgaMqI0L0bj+xQynogI9sgedv3FQwlj6234kChlqJSzOAAlFeMyYEc/YUn3d2Gv6BVjq2Rv0onaG7XQy3tLELDlMKIHyLwa2ktObT5wCGq2m2y5Ezioyu81IZcrQOyjfjfX97i7D22JeEkyKWO4tfX/IQof5Xcfcfos3Xgbu1cu0+7P5DWShXoDWxkg9XlMALCAW71VvI1MgSsQIMc2HSvJUrtbresgn9oIoRiUxzr8JEvoP0Bfzvw09ivCzGMGahVWhRYk6IiUx2ovP+c0DrJN8Ehy0WUU0Szy16ftOzs7sL96qGhjHd6c8SvHg=
file: build/ChannelSpanner-Linux.tar.gz
secure: "CEe/VYClcBkxn1OWF30N+c2wIUS3Jn+lwyAlkvg6IiyevayIFW8Jup1wOcQAfnR/o4MPjm8icQZvJvXTgfDTe6vl1EpQladMQ9ZlH+sIiK7CN7+fefJwTCsnhTm5eGl5o31YD0Zsmha5mQL+PBJSXF5dkWdWSsv5dy3O0S0kaX8jFAMBM/dbz3Ju4/Z5NkeXH5BlcPCfnNAE6JpWBQjo4avYAkrpwljTjTnnO3KJERWOSdYi7yUWUSolpgEzh7WS/NUxEN4LAZt88hqHvUaNS5aer/tBKeP9CsSk/9BhM6YUmPQ3Xgjk1O87VtuJ6sXtHjFozwZvY6Z3irCl8i07bJ5nGo54npcqGH5ror0jS7X3csEUq14Roz26uEm91k4ozkeimQP/YHhLA3n9k0lFmxYcCdiEwmiV5NIBzR68T0CLSm2IJqcMfZwJXSSuvTJk3HoMJekFTpi6ro4mhsxgMRFfe0WjW3/KBQBgN+qF1EF3rtQerXVSLa2RJEblGR5IS/D+CMR+gxY2zVKbxfM+dgcw9n6Mc4V2DwsnSqF+mnkAScP/By/WQTK7M+sCK6Ya/pnPN/begOkZlOVr/d1W4iVAsd3hoIpAI15ewx+tBwh03bryTcQddZH6kFnBp0SGUbnqQMLr1i0JOr1H3RfvMf/tIhhCoAYT6LlSG0puVMQ="
file: ChannelSpanner-Linux.tar.gz
skip_cleanup: true
draft: true
overwrite: true
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# ChannelSpanner
# Channel Spanner

[![Build Status](https://travis-ci.org/cameronleger/channelspanner.svg?branch=master)](https://travis-ci.org/cameronleger/channelspanner)

![Example Screenshot for Channel Spanner](/screenshot.jpg?raw=true "Example Screenshot for Channel Spanner")

This VST2 Plugin aims to be a quick, light, and no-fuss multi-track Spectrum Analyzer. To that end, simply add multiple instances of this plugin, possibly tweak some parameters in your host, and enjoy! Use it for visualizing each bus, each lead, or even before and after an effect chain.

Binary file added screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/process.c
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ void free_sample_data( track_t* track )
void update_frame_size( track_t* track, size_t frameSize )
{
if ( NULL == track ) return;
if ( track->frameSize == frameSize ) return;

free_working_area( track );
track->frameSize = frameSize;
12 changes: 4 additions & 8 deletions src/vst2.cpp
Original file line number Diff line number Diff line change
@@ -136,11 +136,6 @@ class VSTPluginWrapper
ctx = nullptr;
}

void updateFFTSize()
{
update_frame_size( track, FFT_SCALER(fftScale) );
}

void updateTrack()
{
process_samples( track, reactivity );
@@ -149,7 +144,7 @@ class VSTPluginWrapper

void openEditor( void* wnd )
{
if ( nullptr != lglw )
if ( nullptr == lglw )
{
lglw = lglw_init( editor_rect.right, editor_rect.bottom );
lglw_userdata_set( lglw, this );
@@ -240,8 +235,6 @@ class VSTPluginWrapper
case 0:
{
fftScale = (uint8_t) roundf( value * FFT_SCALE_MAX );
if ( track->frameSize != FFT_SCALER( fftScale ) )
updateFFTSize();
break;
}
case 1:
@@ -562,6 +555,8 @@ void VSTPluginProcessSamplesFloat32( AEffect* vstPlugin, float** inputs, float**

track_t* track = wrapper->getTrack();

update_frame_size( track, FFT_SCALER( wrapper->fftScale ) );

for ( int i = 0; i < wrapper->getNumInputs() && i < MAX_CHANNELS; ++i )
{
auto inputSamples = inputs[i];
@@ -1005,6 +1000,7 @@ VSTPluginWrapper::VSTPluginWrapper( audioMasterCallback vstHostCallback,

track = nullptr;
ctx = nullptr;
lglw = nullptr;
}

VSTPluginWrapper::~VSTPluginWrapper()

0 comments on commit 25d63bd

Please sign in to comment.