[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SF.net SVN: supercollider:[8294] trunk/build/SCClassLibrary/Common/Control/ Volume.sc
Revision: 8294
http://supercollider.svn.sourceforge.net/supercollider/?rev=8294&view=rev
Author: jrhb
Date: 2008-12-25 18:23:39 +0000 (Thu, 25 Dec 2008)
Log Message:
-----------
add back in correct clipping.
Modified Paths:
--------------
trunk/build/SCClassLibrary/Common/Control/Volume.sc
Modified: trunk/build/SCClassLibrary/Common/Control/Volume.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Control/Volume.sc 2008-12-25 17:33:33 UTC (rev 8293)
+++ trunk/build/SCClassLibrary/Common/Control/Volume.sc 2008-12-25 18:23:39 UTC (rev 8294)
@@ -23,7 +23,7 @@
Volume {
- var startBus, numChans, <min, <max, server, persist, <ampSynth, <>window,<volume, spec;
+ var startBus, numChans, <min, <max, server, persist, <ampSynth, <>window, <volume, spec;
var <lag, sdname, gui, <isPlaying, <muteamp, cpFun, <isMuted=false, <isPrepping;
var <synthNumChans; // the actual number of channels, which might be set automatically
@@ -114,7 +114,7 @@
numChans = num;
}
- mute{
+ mute {
this.isPlaying.if({
this.prmute;
}, {
@@ -122,7 +122,7 @@
});
}
- unmute{
+ unmute {
this.prunmute;
(this.muteamp == 0.0).if({
this.free;
@@ -160,7 +160,7 @@
this.playVolume(isMuted);
})
});
- volume = volume.clip(-90, 6);
+ volume = volume.clip(min, max);
if(isMuted) { muteamp = volume };
if(isPlaying && isMuted.not) { ampSynth.set(\volumeAmp, volume.dbamp) };
this.changed(\amp, volume);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/