aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jsyn/instruments/SubtractiveSynthVoice.java
diff options
context:
space:
mode:
authorPhil Burk <[email protected]>2015-01-02 13:23:30 -0800
committerPhil Burk <[email protected]>2015-04-29 08:11:10 -0700
commit7aec269a333d43cc226a0c9c30986e4b50bafa28 (patch)
tree8029f57340ef5211586ea21d8a63614cfb1a9ae9 /src/com/jsyn/instruments/SubtractiveSynthVoice.java
parentd3c74876db36598813068ce0bb8ea887e41a1c71 (diff)
Use AudioMath for pitch to frequency conversion.
Fix ListDevices default. Cleanup interpolator in AutoCorrelator. Remove empty string from SubtractiveSynth library.
Diffstat (limited to 'src/com/jsyn/instruments/SubtractiveSynthVoice.java')
-rw-r--r--src/com/jsyn/instruments/SubtractiveSynthVoice.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/jsyn/instruments/SubtractiveSynthVoice.java b/src/com/jsyn/instruments/SubtractiveSynthVoice.java
index 9ea593e..af3329e 100644
--- a/src/com/jsyn/instruments/SubtractiveSynthVoice.java
+++ b/src/com/jsyn/instruments/SubtractiveSynthVoice.java
@@ -135,6 +135,7 @@ public class SubtractiveSynthVoice extends Circuit implements UnitVoice {
cutoffRange.set(500.0);
filter.Q.set(3.0);
break;
+ case 2:
default:
ampEnv.attack.set(0.1);
ampEnv.decay.set(0.3);
@@ -147,7 +148,7 @@ public class SubtractiveSynthVoice extends Circuit implements UnitVoice {
}
static String[] presetNames = {
- "FastSaw", "SlowSaw", "BrightSaw", ""
+ "FastSaw", "SlowSaw", "BrightSaw"
};
static class MyVoiceDescription extends VoiceDescription {