Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
axiomaticv
axiomaticv's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Sample data to array [toxi.audio]
[0 Replies]
22-Jul-2012 01:39 PM
Forum:
Contributed Library Questions
I would like to load sample values from an aiff file into float array. What would be the correct way to do that?
my attempt looks like this:
import toxi.audio.*;
import toxi.geom.*;
audioSys = JOALUtil.getInstance();
audioSys.init();
source=audioSys.generateSourceFromFile(dataPath("synth.wav"));
float data[];
data = source.toArray();
println (source.length());
println (data.length); // equals 3 which doesn't seems right..
perhaps there is a way to directly access the sample values from Spline2D?
«Prev
Next »
Moderate user : axiomaticv
Forum