-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
267 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import processing.sound.*; | ||
|
||
import com.jsyn.devices.*; | ||
import com.jsyn.Synthesizer; | ||
import com.jsyn.devices.jportaudio.JPortAudioDevice; | ||
|
||
void setup() { | ||
|
||
// get hardware device information | ||
Sound.list(); | ||
|
||
AudioDeviceManager m = Sound.getAudioDeviceManager(); | ||
println("Audio device manager: " + m); | ||
if (m instanceof JPortAudioDevice) { | ||
println("Using the PortAudio device for 24 bit support on Windows"); | ||
} | ||
|
||
|
||
// get synthesis runtime information | ||
Synthesizer s = Sound.getSynthesizer(); | ||
// a lot of this information can be gleaned with one look by calling Sound.status(); | ||
println("Current CPU usage: " + s.getUsage()); | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.