Access raw sample data from AudioIn object in Processing Sound lib?












0















How to access the raw sample data from, for example, a processing.sound.AudioIn object ? The array data is there in JSyn (the underlying library), but apparently not exposed in the processing sound lib?










share|improve this question























  • At the moment, unless you modify the library yourself and recompile it to expose the raw sample data, it is indeed impossible to access it until the library changes. Whenever I needed to do that I've used other Processing sound libraries such as Minim or Beads

    – George Profenza
    Jan 5 at 10:09











  • Thanks George, is this there an example somewhere using Beads?

    – rednoyz
    Jan 5 at 15:25
















0















How to access the raw sample data from, for example, a processing.sound.AudioIn object ? The array data is there in JSyn (the underlying library), but apparently not exposed in the processing sound lib?










share|improve this question























  • At the moment, unless you modify the library yourself and recompile it to expose the raw sample data, it is indeed impossible to access it until the library changes. Whenever I needed to do that I've used other Processing sound libraries such as Minim or Beads

    – George Profenza
    Jan 5 at 10:09











  • Thanks George, is this there an example somewhere using Beads?

    – rednoyz
    Jan 5 at 15:25














0












0








0








How to access the raw sample data from, for example, a processing.sound.AudioIn object ? The array data is there in JSyn (the underlying library), but apparently not exposed in the processing sound lib?










share|improve this question














How to access the raw sample data from, for example, a processing.sound.AudioIn object ? The array data is there in JSyn (the underlying library), but apparently not exposed in the processing sound lib?







processing jsyn






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 13:23









rednoyzrednoyz

873620




873620













  • At the moment, unless you modify the library yourself and recompile it to expose the raw sample data, it is indeed impossible to access it until the library changes. Whenever I needed to do that I've used other Processing sound libraries such as Minim or Beads

    – George Profenza
    Jan 5 at 10:09











  • Thanks George, is this there an example somewhere using Beads?

    – rednoyz
    Jan 5 at 15:25



















  • At the moment, unless you modify the library yourself and recompile it to expose the raw sample data, it is indeed impossible to access it until the library changes. Whenever I needed to do that I've used other Processing sound libraries such as Minim or Beads

    – George Profenza
    Jan 5 at 10:09











  • Thanks George, is this there an example somewhere using Beads?

    – rednoyz
    Jan 5 at 15:25

















At the moment, unless you modify the library yourself and recompile it to expose the raw sample data, it is indeed impossible to access it until the library changes. Whenever I needed to do that I've used other Processing sound libraries such as Minim or Beads

– George Profenza
Jan 5 at 10:09





At the moment, unless you modify the library yourself and recompile it to expose the raw sample data, it is indeed impossible to access it until the library changes. Whenever I needed to do that I've used other Processing sound libraries such as Minim or Beads

– George Profenza
Jan 5 at 10:09













Thanks George, is this there an example somewhere using Beads?

– rednoyz
Jan 5 at 15:25





Thanks George, is this there an example somewhere using Beads?

– rednoyz
Jan 5 at 15:25












1 Answer
1






active

oldest

votes


















0














If you can get access to the JSyn units then you insert your own custom unit generator into the JSyn flow graph.



You can start from scratch and subclass a UnitGenerator.
Or if you want to process a stream you can subclass a UnitFilter, which has an input and output port.



More information on how to define a custom unit is here:
http://www.softsynth.com/jsyn/docs/usersguide.php#Custom






share|improve this answer
























  • As best I can tell, you can't get access to the JSyn units because they are in private classes (e.g., JSynCircuit). So what would be the simplest way to process raw samples from a mono input stream (like a microphone). I'd need a ChannelIn, a subclass of UnitFilter, and a LineOut, or ... ? Some skeleton code would be great...

    – rednoyz
    Jan 6 at 4:47













  • You may not be able to access the Processing JSyn units. But perhaps you can just make your own. Try creating your own JSyn synth and then open it with 1 or 2 input channels. Then you can connect filters or other units to that input. softsynth.com/jsyn/docs/usersguide.php#AudioIput Here is a simple in/out example. github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/…

    – philburk
    Jan 10 at 21:30













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007163%2faccess-raw-sample-data-from-audioin-object-in-processing-sound-lib%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














If you can get access to the JSyn units then you insert your own custom unit generator into the JSyn flow graph.



You can start from scratch and subclass a UnitGenerator.
Or if you want to process a stream you can subclass a UnitFilter, which has an input and output port.



More information on how to define a custom unit is here:
http://www.softsynth.com/jsyn/docs/usersguide.php#Custom






share|improve this answer
























  • As best I can tell, you can't get access to the JSyn units because they are in private classes (e.g., JSynCircuit). So what would be the simplest way to process raw samples from a mono input stream (like a microphone). I'd need a ChannelIn, a subclass of UnitFilter, and a LineOut, or ... ? Some skeleton code would be great...

    – rednoyz
    Jan 6 at 4:47













  • You may not be able to access the Processing JSyn units. But perhaps you can just make your own. Try creating your own JSyn synth and then open it with 1 or 2 input channels. Then you can connect filters or other units to that input. softsynth.com/jsyn/docs/usersguide.php#AudioIput Here is a simple in/out example. github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/…

    – philburk
    Jan 10 at 21:30


















0














If you can get access to the JSyn units then you insert your own custom unit generator into the JSyn flow graph.



You can start from scratch and subclass a UnitGenerator.
Or if you want to process a stream you can subclass a UnitFilter, which has an input and output port.



More information on how to define a custom unit is here:
http://www.softsynth.com/jsyn/docs/usersguide.php#Custom






share|improve this answer
























  • As best I can tell, you can't get access to the JSyn units because they are in private classes (e.g., JSynCircuit). So what would be the simplest way to process raw samples from a mono input stream (like a microphone). I'd need a ChannelIn, a subclass of UnitFilter, and a LineOut, or ... ? Some skeleton code would be great...

    – rednoyz
    Jan 6 at 4:47













  • You may not be able to access the Processing JSyn units. But perhaps you can just make your own. Try creating your own JSyn synth and then open it with 1 or 2 input channels. Then you can connect filters or other units to that input. softsynth.com/jsyn/docs/usersguide.php#AudioIput Here is a simple in/out example. github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/…

    – philburk
    Jan 10 at 21:30
















0












0








0







If you can get access to the JSyn units then you insert your own custom unit generator into the JSyn flow graph.



You can start from scratch and subclass a UnitGenerator.
Or if you want to process a stream you can subclass a UnitFilter, which has an input and output port.



More information on how to define a custom unit is here:
http://www.softsynth.com/jsyn/docs/usersguide.php#Custom






share|improve this answer













If you can get access to the JSyn units then you insert your own custom unit generator into the JSyn flow graph.



You can start from scratch and subclass a UnitGenerator.
Or if you want to process a stream you can subclass a UnitFilter, which has an input and output port.



More information on how to define a custom unit is here:
http://www.softsynth.com/jsyn/docs/usersguide.php#Custom







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 5 at 20:21









philburkphilburk

408310




408310













  • As best I can tell, you can't get access to the JSyn units because they are in private classes (e.g., JSynCircuit). So what would be the simplest way to process raw samples from a mono input stream (like a microphone). I'd need a ChannelIn, a subclass of UnitFilter, and a LineOut, or ... ? Some skeleton code would be great...

    – rednoyz
    Jan 6 at 4:47













  • You may not be able to access the Processing JSyn units. But perhaps you can just make your own. Try creating your own JSyn synth and then open it with 1 or 2 input channels. Then you can connect filters or other units to that input. softsynth.com/jsyn/docs/usersguide.php#AudioIput Here is a simple in/out example. github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/…

    – philburk
    Jan 10 at 21:30





















  • As best I can tell, you can't get access to the JSyn units because they are in private classes (e.g., JSynCircuit). So what would be the simplest way to process raw samples from a mono input stream (like a microphone). I'd need a ChannelIn, a subclass of UnitFilter, and a LineOut, or ... ? Some skeleton code would be great...

    – rednoyz
    Jan 6 at 4:47













  • You may not be able to access the Processing JSyn units. But perhaps you can just make your own. Try creating your own JSyn synth and then open it with 1 or 2 input channels. Then you can connect filters or other units to that input. softsynth.com/jsyn/docs/usersguide.php#AudioIput Here is a simple in/out example. github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/…

    – philburk
    Jan 10 at 21:30



















As best I can tell, you can't get access to the JSyn units because they are in private classes (e.g., JSynCircuit). So what would be the simplest way to process raw samples from a mono input stream (like a microphone). I'd need a ChannelIn, a subclass of UnitFilter, and a LineOut, or ... ? Some skeleton code would be great...

– rednoyz
Jan 6 at 4:47







As best I can tell, you can't get access to the JSyn units because they are in private classes (e.g., JSynCircuit). So what would be the simplest way to process raw samples from a mono input stream (like a microphone). I'd need a ChannelIn, a subclass of UnitFilter, and a LineOut, or ... ? Some skeleton code would be great...

– rednoyz
Jan 6 at 4:47















You may not be able to access the Processing JSyn units. But perhaps you can just make your own. Try creating your own JSyn synth and then open it with 1 or 2 input channels. Then you can connect filters or other units to that input. softsynth.com/jsyn/docs/usersguide.php#AudioIput Here is a simple in/out example. github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/…

– philburk
Jan 10 at 21:30







You may not be able to access the Processing JSyn units. But perhaps you can just make your own. Try creating your own JSyn synth and then open it with 1 or 2 input channels. Then you can connect filters or other units to that input. softsynth.com/jsyn/docs/usersguide.php#AudioIput Here is a simple in/out example. github.com/philburk/jsyn/blob/master/tests/com/jsyn/examples/…

– philburk
Jan 10 at 21:30






















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007163%2faccess-raw-sample-data-from-audioin-object-in-processing-sound-lib%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Mossoró

Error while reading .h5 file using the rhdf5 package in R

Pushsharp Apns notification error: 'InvalidToken'