Skip to content

last block of analysis is not writtenย #2

@olafklingt

Description

@olafklingt

I realized that the last block of the analysis is not written to the file.
here a easy reproducer:

(
var fn=Platform.resourceDir +/+ "sounds/a11wlk01.wav";
var f=SoundFile.openRead(fn);
var nf= f.numFrames.debug(\numFrames);
a=SoundFileAnalysis();		
a.add(\pn, \trig, { |sig|
	var trig = (sig>0)&(Delay1.ar(sig)<=0);
	var count = PulseCount.ar(trig);
	var phase = Phasor.ar(0,1,0,nf) - nf +2;
	Poll(phase,count);
	[phase, count]});
	x=a.analyzeFile(fn,0,f.duration, callback: {x.postln});
)

the easiest way to overcome the problem is to set the server blockSize to 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions