Pff, copy / paste from a Hex editor would do the trick, and then, a C coder need to fall back to this raises eyebrows.
Bouke > On 5 Jul 2024, at 17:29, Danny Mitchell <fishcust...@gmail.com> wrote: > > On Sun, 30 Jun 2024 at 15:38, Michael Koch <astroelectro...@t-online.de> > wrote: >> >> Hi, >> >> is it possible to convert an audio waveform to a CSV list? >> I want to insert 2048 samples of a waveform into the C source code for a >> microcontroller. >> >> Michael >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user@ffmpeg.org >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > > > I know I'm late to this discussion, and there have been some good > suggestions, so I'll just add this comment. I'd go with octave's > (https://octave.org/) DSP tools and read the audio file into an octave > matrix; it can read wav and aiff files natively (and possibly mp3, but > I haven't used that.) You can then access any particular audio sample > or group of samples, and use octave's version of the C functions > printf or fprintf to write the selected samples to a csv (or any > other) file, in whatever format (int, float, etc) is suitable. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".