Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit 300b452

Browse files
Added concept code
1 parent de6a89e commit 300b452

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

concept/aGainConcept.scd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
(
2+
~gain = 0.5;
3+
4+
b = Buffer.read(s, "/home/amsakan/dev/aClip/concept/huh.wav");
5+
6+
b.loadToFloatArray(action: { |array|
7+
for(0, array.size - 1, { |i|
8+
array[i] = array[i] * ~gain;
9+
});
10+
11+
b.loadCollection(array);
12+
});
13+
14+
x = {PlayBuf.ar(2, b, BufRateScale.kr(b), doneAction: 2)}.play;
15+
)

src/AGainProcessor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "AGainProcessor.h"
1+
#include "AGainProcessor.hh"
22
#include <cmath>
33

44
//==============================================================================

0 commit comments

Comments
 (0)