Skip to content

Commit

Permalink
re-enable MiGrids
Browse files Browse the repository at this point in the history
  • Loading branch information
v7b1 committed Apr 11, 2024
1 parent 05142fe commit 28bdfd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest, ubuntu-18.04, windows-latest]
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiBraids/libsamplerate ${C
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiBraids)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiClouds)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiElements)
#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiGrids)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiGrids)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiMu)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiOmi)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/projects/MiPlaits)
Expand Down
8 changes: 4 additions & 4 deletions projects/MiClouds/MiClouds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void MiClouds_next( MiClouds *unit, int inNumSamples )
p->pitch = smoothed_value[PARAM_PITCH];


for(auto i=1; i<PARAM_CHANNEL_LAST; ++i) {
for(int i=1; i<PARAM_CHANNEL_LAST; ++i) {
float value = IN0(i);
CONSTRAIN(value, 0.0f, 1.0f);
smoothed_value[i] += coef * (value - smoothed_value[i]);
Expand Down Expand Up @@ -253,7 +253,7 @@ void MiClouds_next( MiClouds *unit, int inNumSamples )

for(int count = 0; count < vs; count += kAudioBlockSize) {

for(auto i=0; i<kAudioBlockSize; ++i) {
for(int i=0; i<kAudioBlockSize; ++i) {
input[i].l = IN(kNumArgs)[i + count] * in_gain;
input[i].r = IN(kNumArgs+1)[i + count] * in_gain;
}
Expand All @@ -265,7 +265,7 @@ void MiClouds_next( MiClouds *unit, int inNumSamples )
break;
case 2 :
float sum = 0.f;
for(auto i=0; i<kAudioBlockSize; ++i) {
for(int i=0; i<kAudioBlockSize; ++i) {
sum += ( trig_in[i+count] );
}
trigger = ( sum > 0.f );
Expand All @@ -282,7 +282,7 @@ void MiClouds_next( MiClouds *unit, int inNumSamples )
if(p->trigger)
p->trigger = false;

for(auto i=0; i<kAudioBlockSize; ++i) {
for(int i=0; i<kAudioBlockSize; ++i) {
outL[i + count] = output[i].l;
outR[i + count] = output[i].r;
}
Expand Down

0 comments on commit 28bdfd9

Please sign in to comment.