typo in bufselectevery + change of letters in method

nix
Pierre Alexandre Tremblay 4 years ago
parent ea4c644bd1
commit fedaa68b45

@ -1,6 +1,6 @@
FluidBufSelectEvery : FluidBufProcessor { FluidBufSelectEvery : FluidBufProcessor {
*kr { |source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, channelHop = 1, trig = 1, blocking = 1| *kr { |source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, chanHop = 1, trig = 1, blocking = 1|
source = source.asUGenInput; source = source.asUGenInput;
destination = destination.asUGenInput; destination = destination.asUGenInput;
@ -8,10 +8,10 @@ FluidBufSelectEvery : FluidBufProcessor {
source.isNil.if {"FluidBufSelectEvery: Invalid source buffer".throw}; source.isNil.if {"FluidBufSelectEvery: Invalid source buffer".throw};
destination.isNil.if {"FluidBufSelectEvery: Invalid destination buffer".throw}; destination.isNil.if {"FluidBufSelectEvery: Invalid destination buffer".throw};
^FluidProxyUgen.kr(\FluidBufSelectEveryTrigger, -1, source, startFrame, numFrames, startChan, numChans, destination, frameHop, channelHop, trig, blocking); ^FluidProxyUgen.kr(\FluidBufSelectEveryTrigger, -1, source, startFrame, numFrames, startChan, numChans, destination, frameHop, chanHop, trig, blocking);
} }
*process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, channelHop = 1, freeWhenDone = true, action| *process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, chanHop = 1, freeWhenDone = true, action|
source = source.asUGenInput; source = source.asUGenInput;
destination = destination.asUGenInput; destination = destination.asUGenInput;
@ -22,11 +22,11 @@ FluidBufSelectEvery : FluidBufProcessor {
^this.new( ^this.new(
server, nil, [destination] server, nil, [destination]
).processList( ).processList(
[source, startFrame, numFrames, startChan, numChans, destination, frameHop, channelHop, 0], freeWhenDone, action [source, startFrame, numFrames, startChan, numChans, destination, frameHop, chanHop, 0], freeWhenDone, action
); );
} }
*processBlocking { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, channelHop = 1, freeWhenDone = true, action| *processBlocking { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, destination, frameHop = 1, chanHop = 1, freeWhenDone = true, action|
source = source.asUGenInput; source = source.asUGenInput;
destination = destination.asUGenInput; destination = destination.asUGenInput;
@ -37,7 +37,7 @@ FluidBufSelectEvery : FluidBufProcessor {
^this.new( ^this.new(
server, nil, [destination] server, nil, [destination]
).processList( ).processList(
[source, startFrame, numFrames, startChan, numChans, destination, frameHop, channelHop, 1], freeWhenDone, action [source, startFrame, numFrames, startChan, numChans, destination, frameHop, chanHop, 1], freeWhenDone, action
); );
} }
} }

@ -35,10 +35,10 @@ ARGUMENT:: destination
The link::Classes/Buffer:: to write the selected data to The link::Classes/Buffer:: to write the selected data to
ARGUMENT:: frameHop ARGUMENT:: frameHop
Take every `framehop` frames. Default = 1 = all frames (where 2 would be every other frame, etc.) Take every `frameHop` frames. Default = 1 = all frames (where 2 would be every other frame, etc.)
ARGUMENT:: channelHop ARGUMENT:: chanHop
Take every `channelhop` channels. Default = 1 = all channels (where 2 would be every other channel, etc.) Take every `chanHop` channels. Default = 1 = all channels (where 2 would be every other channel, etc.)
ARGUMENT:: freeWhenDone ARGUMENT:: freeWhenDone
Free the server instance when processing complete. Default true Free the server instance when processing complete. Default true
@ -46,9 +46,6 @@ Free the server instance when processing complete. Default true
ARGUMENT:: action ARGUMENT:: action
Runs when processing is complete Runs when processing is complete
EXAMPLES::
code::
EXAMPLES:: EXAMPLES::
Didactic Didactic
code:: code::
@ -68,10 +65,10 @@ FluidBufSelectEvery.process(s,b, destination: c, action: {c.query});
c.getToFloatArray(action: {|x|x.round(0.1).postln;}); c.getToFloatArray(action: {|x|x.round(0.1).postln;});
//more powerful copying, resizing the destination accordingly //more powerful copying, resizing the destination accordingly
FluidBufSelectEvery.process(s,b, destination: c, frameHop: 2, channelHop: 3, action: {c.query}); FluidBufSelectEvery.process(s,b, destination: c, frameHop: 2, chanHop: 3, action: {c.query});
c.getToFloatArray(action: {|x|x.round(0.1).postln;}); c.getToFloatArray(action: {|x|x.round(0.1).postln;});
//source buffer boundaries still apply before the hopping selection //source buffer boundaries still apply before the hopping selection
FluidBufSelectEvery.process(s,b, startFrame: 1, numFrames: 3, startChan: 2, numChans: 3, destination: c, frameHop: 1, channelHop: 2, action: {c.query}); FluidBufSelectEvery.process(s,b, startFrame: 1, numFrames: 3, startChan: 2, numChans: 3, destination: c, frameHop: 1, chanHop: 2, action: {c.query});
c.getToFloatArray(action: {|x|x.round(0.1).postln;}); c.getToFloatArray(action: {|x|x.round(0.1).postln;});
:::: ::

Loading…
Cancel
Save