Comments (3)
Upon further reading it looks like the number of inputs is always capped in the DualOscilloscope example.
int numInputChannels = deviceMaxInputs.get(itemIndex); if (numInputChannels > 2) numInputChannels = 2;
Given this, I don't understand how to obtain specific inputs from specific channels?
The example I am thinking of is my soundcard has 14 inputs, but I'm only interested in channels 5 and 6. How is this achieved with this library? Whenever I set the channel indexes to something other then 0, or 1, the library just spits out
java.lang.RuntimeException: Audio Input not configured in start() method. at com.jsyn.engine.SynthesisEngine.getInputBuffer(Unknown Source) at com.jsyn.unitgen.ChannelIn.generate(Unknown Source) at com.jsyn.unitgen.UnitGenerator.pullData(Unknown Source)
Seems like it's not possible?
from jsyn.
I need to add some tests or demos for multi-channel input and output.
The JPortaudio libraries on the softsynth.com website are very old and need to be rebuilt with the Mac changes from this:
https://github.com/PortAudio/portaudio/pull/356
The example I am thinking of is my soundcard has 14 inputs, but I'm only interested in channels 5 and 6.
How is this achieved with this library?
Generally, the solution is to open 8 channels and then just ignore the lower numbered channels you don't want.
from jsyn.
the number of inputs is always capped in the DualOscilloscope
That is just a limitation of the example code. You should be able to use the ChannelIn(5) unit to get the 5th channel and then connect it to a scope.
This seems like a bug in JPortAudio or PortAudio.
@lukasroberts - What is your sound card?
How many individual input channels versus SPDIF channels?
What happens if you only open 8 input channels?
from jsyn.
Related Issues (20)
- Resolve version numbers between JSyn and build.gradle HOT 1
- Ant build Failing due to slf4j dependency HOT 1
- Sometimes WaveRecorder doesn't stop the StreamingThread when used with realTime = false HOT 5
- port TJ_Devices from old JSyn to new API for multi-channel demo
- move old Roadmap to GitHub Wiki
- Suggest better docs for setSustainBegin and End HOT 1
- Broken link in online usersguide docs
- Need DoubleTable( FloatSample ) constructor
- Glitch When Playing Through Bluetooth HOT 1
- Different amplitude value for a VariableRateDataReader HOT 1
- use ByteBuffer wrap() and order() for WAV and AIFF
- Publish JSyn on Maven HOT 9
- Fix contributor name on NOTICE.txt HOT 1
- Port TJ_Devices.java to new repo HOT 1
- LineIn not working on MacOS Big Sur
- ExponentialRamp crashes on negative input
- Selecting a module moves it slightly HOT 1
- Add capability to WaveRecorder, and maybe WaveFileWriter, to write to an OutputStream
- Tests failing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsyn.