android实时声音信号波形_Android Flutter分析音频波形

本文探讨了如何创建一个类似于SoundCloud的音乐应用视图,其中包含音乐强度的条形图。作者计划使用Bar类来表示每个条形,并寻求获取每个时间点音乐强度的方法,以确定条形的高度。建议使用flutter_ffmpeg库来生成音频的波形数据,然后在Flutter中通过CustomPaint绘制波形图。
摘要由CSDN通过智能技术生成

I want to create a music app that has a view that resembles the one of SoundCloud, this one to be clear: This

I thought of creating a class like this for each bar:

class Bar {

const Bar(this.alreadyPlayed, this.index, this.height);

final bool alreadyPlayed;

final int index;

final double height;

}

where alreadyPlayed is a bool that tells if the bar should be colored or Greyed out, index is the number of the bar and height, well is the height of the bar. The first two Variables shouldn't be difficult to obtain, my problem is to obtain the height of the bar, so the intensity of the music at that time. This is already enough, but even better if someone knows how to calculate the intensity of a specific frequency, for example, 225 Hz, that could be useful.

But anyway, if it helps, I am adding what I'm trying to achi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值