[mirtoolbox] Re: mirfeatures using 'Segment' option

  • From: Olivier Lartillot <olartillot@xxxxxxxxx>
  • To: mirtoolbox@xxxxxxxxxxxxx
  • Date: Fri, 6 Apr 2012 10:45:56 +0200

Hi,

Yes, there is a bug in the current version of MIRtoolbox when using mirfeatures 
with the 'Segment' option. The bug fix will be available in the new release, 
that I plan to make available within the next few days..

Cheers,

Olivier

On 20.3.2012, at 19.46, Mostafavi, Amanda wrote:

> Thanks for the reply Martin. I tried again using the array you used in your 
> example and it worked, although I didn't get that error when it got to 
> spectral flux
> 
> Also, do you know is mirfeatures supposed to average everything together even 
> if you use the segment option? I guess I was expecting multiple lines per 
> audio file in that instance (as in if the song is split into 3 segments, the 
> results would be 3 lines for that song for the features calculated on each 
> segment). Maybe I misunderstood the point of the segment option.
> From: mirtoolbox-bounce@xxxxxxxxxxxxx [mirtoolbox-bounce@xxxxxxxxxxxxx] on 
> behalf of Hartmann Martin [martinarielhartmann@xxxxxxxxx]
> Sent: Tuesday, March 20, 2012 2:09 PM
> To: mirtoolbox@xxxxxxxxxxxxx
> Subject: [mirtoolbox] Re: mirfeatures using 'Segment' option
> 
> Hi Amanda,
> 
> I could get it working this way:
> t=[3;5];
> mirfeatures('vivaldi','segment', t)
> 
> However, when 'Computing Spectral flux…' I get this error (do you get it as 
> well?):
> 
> Reference to non-existent field 'median'.
> 
> Error in mirflux>modif (line 211)
>         if option.median(1)
> 
> Error in mirflux>main (line 198)
>         f = modif(f,postoption);
> 
> Error in mirfunction (line 186)
>         o = main(orig,during,after);
> 
> Error in mirflux (line 83)
> varargout = mirfunction(@mirflux,orig,varargin,nargout,specif,@init,@main);
> 
> Error in mirdesign/evaleach>evalnow (line 718)
>     [y argin] = d.method(argin,d.option,d.postoption);
> 
> Error in mirdesign/evaleach (line 181)
>             [ss d3] = evalnow(d2);
> 
> Error in mireval>evalaudiofile (line 254)
>         v = evaleach(d,single,name);
> 
> Error in mireval>evalaudiofile (line 196)
>         res = evalaudiofile(field,file,sampling,lg,size,struc,istmp,index,...
> 
> Error in mireval>evalaudiofile (line 196)
>         res = evalaudiofile(field,file,sampling,lg,size,struc,istmp,index,...
> 
> Error in mireval (line 144)
>         yf = evalaudiofile(d,a{f},sr(f),lg(f),w(:,f),{},0,f,single,'',ch);
> 
> Error in mirfeatures (line 116)
>     r = mireval(r,x);
> 
> Hope this helps,
> 
> Martín
> 
> 
> On Mar 20, 2012, at 7:35 PM, Mostafavi, Amanda wrote:
> 
>> Hi!
>> 
>> So I'm trying to use mirfeatures with the 'Segment' option so that it will 
>> evaluate segments of a song separately rather than just average the features 
>> for the entire song. However, I keep getting an index out of bounds error, I 
>> think because my array is a list of numbers corresponding to seconds. Is the 
>> array supposed to be in a particular format or something? If anyone can give 
>> an example of this being done properly, I'd appreciate it. I've been all 
>> over the archives and google, and apparently no one else has had this 
>> problem.
>> 
>> Thanks!
> 
> 

Other related posts: