Giter VIP home page Giter VIP logo

Comments (3)

lukasroberts avatar lukasroberts commented on May 29, 2024

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.

philburk avatar philburk commented on May 29, 2024

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.

philburk avatar philburk commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.