waveform of full mp3 file?

186 views
Skip to first unread message

calio...@gmail.com

unread,
Jul 19, 2017, 2:48:24 PM7/19/17
to AudioKit Users Group
Is there a way to plot the waveform of an mp3 file? I can't seem to find anything about this in the documentation or examples.

Aurelius Prochazka Ph.D.

unread,
Jul 19, 2017, 2:54:26 PM7/19/17
to AudioKit Users Group
We don't provide this easily in AudioKit, but we really should, and it won't be that hard with the tools we already have in place.  I've added it to https://github.com/AudioKit/AudioKit/projects/1

Thank you for the suggestion.

Aure

Aurelius Prochazka Ph.D.

unread,
Aug 1, 2017, 4:04:44 PM8/1/17
to AudioKit Users Group
This is done in the develop branch.

let file = try AKAudioFile(readFileName: "drumloop.wav", baseDir: .resources)
let fileTable
= AKTable(file: file)
addSubview
(AKTableView(fileTable))

Aure

Ryan Francesconi

unread,
Aug 7, 2017, 10:38:04 AM8/7/17
to AudioKit Users Group
You can also use EZAudioFile/EZAudioPlot to do this.

Something like:
        waveform = EZAudioPlot()        
        waveform.plotType = EZPlotType.buffer
        waveform.shouldFill = true
        waveform.shouldMirror = true

        if let data = ezFile.getWaveformData() {
            waveform.updateBuffer( data.buffers[0], withBufferSize: data.bufferSize )
ETC

            
        



On Wednesday, July 19, 2017 at 11:48:24 AM UTC-7, calio...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages