Skip to content

Commit fedaa68

Browse files
committed
typo in bufselectevery + change of letters in method
1 parent ea4c644 commit fedaa68

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

release-packaging/Classes/FluidBufSelectEvery.sc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
FluidBufSelectEvery : FluidBufProcessor {
22

3-
*kr { |source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, channelHop = 1, trig = 1, blocking = 1|
4-
3+
*kr { |source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, chanHop = 1, trig = 1, blocking = 1|
4+
55
source = source.asUGenInput;
66
destination = destination.asUGenInput;
77

88
source.isNil.if {"FluidBufSelectEvery: Invalid source buffer".throw};
99
destination.isNil.if {"FluidBufSelectEvery: Invalid destination buffer".throw};
10-
11-
^FluidProxyUgen.kr(\FluidBufSelectEveryTrigger, -1, source, startFrame, numFrames, startChan, numChans, destination, frameHop, channelHop, trig, blocking);
10+
11+
^FluidProxyUgen.kr(\FluidBufSelectEveryTrigger, -1, source, startFrame, numFrames, startChan, numChans, destination, frameHop, chanHop, trig, blocking);
1212
}
1313

14-
*process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, channelHop = 1, freeWhenDone = true, action|
15-
14+
*process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, chanHop = 1, freeWhenDone = true, action|
15+
1616
source = source.asUGenInput;
1717
destination = destination.asUGenInput;
1818

1919
source.isNil.if {"FluidBufSelectEvery: Invalid source buffer".throw};
2020
destination.isNil.if {"FluidBufSelectEvery: Invalid destination buffer".throw};
21-
21+
2222
^this.new(
2323
server, nil, [destination]
2424
).processList(
25-
[source, startFrame, numFrames, startChan, numChans, destination, frameHop, channelHop, 0], freeWhenDone, action
25+
[source, startFrame, numFrames, startChan, numChans, destination, frameHop, chanHop, 0], freeWhenDone, action
2626
);
2727
}
2828

29-
*processBlocking { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, channelHop = 1, freeWhenDone = true, action|
30-
29+
*processBlocking { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, chanHop = 1, freeWhenDone = true, action|
30+
3131
source = source.asUGenInput;
3232
destination = destination.asUGenInput;
3333

3434
source.isNil.if {"FluidBufSelectEvery: Invalid source buffer".throw};
3535
destination.isNil.if {"FluidBufSelectEvery: Invalid destination buffer".throw};
36-
36+
3737
^this.new(
3838
server, nil, [destination]
3939
).processList(
40-
[source, startFrame, numFrames, startChan, numChans, destination, frameHop, channelHop, 1], freeWhenDone, action
40+
[source, startFrame, numFrames, startChan, numChans, destination, frameHop, chanHop, 1], freeWhenDone, action
4141
);
4242
}
4343
}

release-packaging/HelpSource/Classes/FluidBufSelectEvery.schelp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,17 @@ ARGUMENT:: destination
3535
The link::Classes/Buffer:: to write the selected data to
3636

3737
ARGUMENT:: frameHop
38-
Take every `framehop` frames. Default = 1 = all frames (where 2 would be every other frame, etc.)
38+
Take every `frameHop` frames. Default = 1 = all frames (where 2 would be every other frame, etc.)
3939

40-
ARGUMENT:: channelHop
41-
Take every `channelhop` channels. Default = 1 = all channels (where 2 would be every other channel, etc.)
40+
ARGUMENT:: chanHop
41+
Take every `chanHop` channels. Default = 1 = all channels (where 2 would be every other channel, etc.)
4242

4343
ARGUMENT:: freeWhenDone
4444
Free the server instance when processing complete. Default true
4545

4646
ARGUMENT:: action
4747
Runs when processing is complete
4848

49-
EXAMPLES::
50-
51-
code::
5249
EXAMPLES::
5350
Didactic
5451
code::
@@ -68,10 +65,10 @@ FluidBufSelectEvery.process(s,b, destination: c, action: {c.query});
6865
c.getToFloatArray(action: {|x|x.round(0.1).postln;});
6966

7067
//more powerful copying, resizing the destination accordingly
71-
FluidBufSelectEvery.process(s,b, destination: c, frameHop: 2, channelHop: 3, action: {c.query});
68+
FluidBufSelectEvery.process(s,b, destination: c, frameHop: 2, chanHop: 3, action: {c.query});
7269
c.getToFloatArray(action: {|x|x.round(0.1).postln;});
7370

7471
//source buffer boundaries still apply before the hopping selection
75-
FluidBufSelectEvery.process(s,b, startFrame: 1, numFrames: 3, startChan: 2, numChans: 3, destination: c, frameHop: 1, channelHop: 2, action: {c.query});
72+
FluidBufSelectEvery.process(s,b, startFrame: 1, numFrames: 3, startChan: 2, numChans: 3, destination: c, frameHop: 1, chanHop: 2, action: {c.query});
7673
c.getToFloatArray(action: {|x|x.round(0.1).postln;});
77-
::::
74+
::

0 commit comments

Comments
 (0)