Skip to content

Binning of Samples / BaseConverter #1460

Answered by pschatzmann
uutzinger asked this question in Q&A
Discussion options

You must be logged in to vote

Using binning as copy target, it should be

GeneratedSoundStream<int16_t> source(sineWave);             // stream generated from sine wave
CsvOutput<int16_t> out(Serial);                           
ConverterStream binning(out,  binner);   // final output goes to CsvOutput                
StreamCopy copier(binning, source);                         

or using it as copy source it would be

GeneratedSoundStream<int16_t> source(sineWave);             // stream generated from sine wave
CsvOutput<int16_t> out(Serial);                           
ConverterStream binning(source,  binner);    // input is from GeneratedSoundStream                           
StreamCopy copier(out, binning);            …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pschatzmann
Comment options

@uutzinger
Comment options

@pschatzmann
Comment options

@uutzinger
Comment options

Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants