|
1 | 1 | FluidBufSelectEvery : FluidBufProcessor { |
2 | 2 |
|
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 | + |
5 | 5 | source = source.asUGenInput; |
6 | 6 | destination = destination.asUGenInput; |
7 | 7 |
|
8 | 8 | source.isNil.if {"FluidBufSelectEvery: Invalid source buffer".throw}; |
9 | 9 | 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); |
12 | 12 | } |
13 | 13 |
|
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 | + |
16 | 16 | source = source.asUGenInput; |
17 | 17 | destination = destination.asUGenInput; |
18 | 18 |
|
19 | 19 | source.isNil.if {"FluidBufSelectEvery: Invalid source buffer".throw}; |
20 | 20 | destination.isNil.if {"FluidBufSelectEvery: Invalid destination buffer".throw}; |
21 | | - |
| 21 | + |
22 | 22 | ^this.new( |
23 | 23 | server, nil, [destination] |
24 | 24 | ).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 |
26 | 26 | ); |
27 | 27 | } |
28 | 28 |
|
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 | + |
31 | 31 | source = source.asUGenInput; |
32 | 32 | destination = destination.asUGenInput; |
33 | 33 |
|
34 | 34 | source.isNil.if {"FluidBufSelectEvery: Invalid source buffer".throw}; |
35 | 35 | destination.isNil.if {"FluidBufSelectEvery: Invalid destination buffer".throw}; |
36 | | - |
| 36 | + |
37 | 37 | ^this.new( |
38 | 38 | server, nil, [destination] |
39 | 39 | ).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 |
41 | 41 | ); |
42 | 42 | } |
43 | 43 | } |
|
0 commit comments