Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BhobUGens: use standard panning behavior for TGrains2, TGrains3 #111

Merged
merged 2 commits into from
Nov 4, 2016

Conversation

nhthn
Copy link

@nhthn nhthn commented Aug 23, 2016

fix #81. panning behavior was standardized in core at supercollider/supercollider#2136

@nhthn
Copy link
Author

nhthn commented Aug 23, 2016

test case:

b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");

{ TGrains2.ar(2, Impulse.kr(100), b, dur: 0.05, pan: Line.kr(-2, 2, 1), att: 0.01, dec: 0.01) }.plot(1.0)

(
var y, h;
c = Buffer.alloc(s, s.sampleRate * 0.2);
y = Signal.hanningWindow(s.sampleRate * 0.4); // twice the size of our buffer, 'cause we only use 1/2
h = Array.fill(s.sampleRate * 0.2, {|i| y[i]});
c.loadCollection(h);
)

{ TGrains3.ar(2, Impulse.kr(100), b, dur: 0.05, pan: Line.kr(-2, 2, 1), att: 0.01, dec: 0.01, window: c) }.plot(1.0)

@bagong
Copy link
Contributor

bagong commented Oct 22, 2016

Fine on Windows! Thanks!

@crucialfelix crucialfelix merged commit f4077aa into supercollider:master Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pan parameter of TGrains2
3 participants