Skip to content

Access data using get, after loading in whole folder #6

Description

@u0x8888

Problem

I am trying to calculate a collection of parameters about different audio files in a directory. Currently, I am:

  1. Loading the folder
  2. Splitting it into frames
  3. Calculating a property (using just sig or aud for now)

I also attempted segmenting the audio from the folder before splitting it into frames, but I seem to get the same recurring error.

Code Example

This is a short Matlab example I am running to test. I commented out each get attempt and tried seperately at different times but have left them all uncommented.

% Read all audio in current folder
dataFolder = sig.signal('Folder');

% % Split it into frames
dataFrames = sig.frame(dataFolder);

% Calculate RMS
dataRmsObj = sig.rms(dataFolder);

% Get RMS data % <- Error occurs on any of the following
dataRms0 = get(dataRmsObj, 'Xdata');
dataRms1 = get(dataRmsObj, 'Ydata');
dataRms2 = sig.getdata(dataRmsObj);
dataRms3 = dataRmsObj.getdata;

Errors

When calling these any of the get function variations, an error will be thrown with:

Not enough input arguments.
Error in sig.design/eval (line 89)
                disp(arg)

Error in sig.design/getdata (line 169)
            v = obj.eval;

Question

Was this not the intended use of the get functions or are there parameters I am missing?

I get results returned successfully when analyzing individual files, it just seems to be this use case when using the folder args. Is there a different design pattern or something I am missing?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions