Skip to content

Commit

Permalink
remove unneeded setting of isPlaying flag
Browse files Browse the repository at this point in the history
  • Loading branch information
adcxyz committed Jun 28, 2024
1 parent 0080f24 commit 397bdef
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions SCClassLibrary/Common/Control/Volume.sc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Volume {
ServerBoot.add(initFunc, server);

updateFunc = {
ampSynth.isPlaying = false;
if(persist) { this.updateSynth }
};

Expand All @@ -66,7 +65,6 @@ Volume {
};
// triggers when gate closed, so we know ampSynth ends
if (ingate <= 0.0) {
ampSynth.isPlaying = false;
volume = invol;
this.changed(\amp, volume);
} {
Expand Down Expand Up @@ -138,7 +136,6 @@ Volume {
ampSynth.onFree {
// "ampSynth was freed".postln;
this.volume = 0;
ampSynth.isPlaying = false;
};
ampSynth.isPlaying = true;
} {
Expand All @@ -148,7 +145,6 @@ Volume {
} {
if(ampSynth.isPlaying) {
ampSynth.set(\volumeAmp, 1).release;
ampSynth.isPlaying = false
}
}
}
Expand All @@ -171,7 +167,6 @@ Volume {

freeSynth {
ampSynth.release;
ampSynth.isPlaying = false;
}

// sets volume back to 1 - removes the synth
Expand Down

0 comments on commit 397bdef

Please sign in to comment.