SuperCollider Forum
May 20, 2013, 07:19:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The SuperCollider forum is currently experiencing a rash of spambot registrations. New user requests may not be approved quickly as a result -- and if your email address looks like spam, it might not be approved at all. We are working to improve the security of the registration process, and to provide alternate means to contact the administrators to get a new account. Thanks for your patience.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Volume in synths  (Read 3244 times)
0 Members and 1 Guest are viewing this topic.
garyfitz123
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: May 16, 2006, 01:01:07 PM »

I wish to control the volume of my synth using a slider in a GUI. this is my synthdef so far:

SynthDef("fileplayer", { arg rate=1, mono, vol=0, buffer, pan, loop;
var file, files, filem;
files = PlayBuf.ar(2, buffer, rate, loop:1);
filem = Pan2.ar(PlayBuf.ar(1, buffer, rate, loop:1), pan);
files = Balance2.ar(files[0], files[1], pan:0);
file = Select.ar(mono, [files, filem]);
Out.ar(0, file);
}).writeDefFile;

I have set the output value of my slider to the vol variable, but when i move the slider, nothing happens.
Help please!
lol
Logged
joshp
AdminGroup
Full Member
*

Karma: 5
Posts: 121



View Profile WWW
« Reply #1 on: May 16, 2006, 05:21:14 PM »

can you post your slider code? When you say nothing happens, the reason is in that part of the code... so without it, not much we can help with.

josh
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!