Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 java.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/media/sound/SoftLowFrequencyOscillator.java
/* * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.media.sound; /** * LFO control signal generator. * * @author Karl Helgason */ public final class SoftLowFrequencyOscillator implements SoftProcess { private final int max_count = 10; private int used_count = 0; private final double[][] out = new double[max_count][1]; private final double[][] delay = new double[max_count][1]; private final double[][] delay2 = new double[max_count][1]; private final double[][] freq = new double[max_count][1]; private final int[] delay_counter = new int[max_count]; private final double[] sin_phase = new double[max_count]; private final double[] sin_stepfreq = new double[max_count]; private final double[] sin_step = new double[max_count]; private double control_time = 0; private double sin_factor = 0; private static final double PI2 = 2.0 * Math.PI; public SoftLowFrequencyOscillator() { // If sin_step is 0 then sin_stepfreq must be -INF for (int i = 0; i < sin_stepfreq.length; i++) { sin_stepfreq[i] = Double.NEGATIVE_INFINITY; } } @Override public void reset() { for (int i = 0; i < used_count; i++) { out[i][0] = 0; delay[i][0] = 0; delay2[i][0] = 0; freq[i][0] = 0; delay_counter[i] = 0; sin_phase[i] = 0; // If sin_step is 0 then sin_stepfreq must be -INF sin_stepfreq[i] = Double.NEGATIVE_INFINITY; sin_step[i] = 0; } used_count = 0; } @Override public void init(SoftSynthesizer synth) { control_time = 1.0 / synth.getControlRate(); sin_factor = control_time * 2 * Math.PI; for (int i = 0; i < used_count; i++) { delay_counter[i] = (int)(Math.pow(2, this.delay[i][0] / 1200.0) / control_time); delay_counter[i] += (int)(delay2[i][0] / (control_time * 1000)); } processControlLogic(); } @Override public void processControlLogic() { for (int i = 0; i < used_count; i++) { if (delay_counter[i] > 0) { delay_counter[i]--; out[i][0] = 0.5; } else { double f = freq[i][0]; if (sin_stepfreq[i] != f) { sin_stepfreq[i] = f; double fr = 440.0 * Math.exp( (f - 6900.0) * (Math.log(2) / 1200.0)); sin_step[i] = fr * sin_factor; } /* double fr = 440.0 * Math.pow(2.0, (freq[i][0] - 6900.0) / 1200.0); sin_phase[i] += fr * sin_factor; */ /* sin_phase[i] += sin_step[i]; while (sin_phase[i] > PI2) sin_phase[i] -= PI2; out[i][0] = 0.5 + Math.sin(sin_phase[i]) * 0.5; */ double p = sin_phase[i]; p += sin_step[i]; while (p > PI2) p -= PI2; out[i][0] = 0.5 + Math.sin(p) * 0.5; sin_phase[i] = p; } } } @Override public double[] get(int instance, String name) { if (instance >= used_count) used_count = instance + 1; if (name == null) return out[instance]; if (name.equals("delay")) return delay[instance]; if (name.equals("delay2")) return delay2[instance]; if (name.equals("freq")) return freq[instance]; return null; } }
⏎ com/sun/media/sound/SoftLowFrequencyOscillator.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 33744👍, 0💬
Popular Posts:
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
Saxon-HE (home edition) is an open source product available under the Mozilla Public License. It pro...
This package is the backport of java.util.concurrent API, introduced in Java 5.0 and further refined...
JDK 17 java.xml.jmod is the JMOD file for JDK 17 XML (eXtensible Markup Language) module. JDK 17 XML...