[翻译] ZLHistogramAudioPlot
ZLHistogramAudioPlot
A hardware-accelerated audio visualization view using EZAudio, inspired by AudioCopy. ZLHistogramAudioPlot was originally developed for Murmur.
这是使用了EZAudio,一个硬件加速的audio可视化view,灵感来自于AudioCopy.ZLHistogramAudioPlot这个最开始是为了Murmur而开发的.
Preview - 预览
Buffer
CocoaPods
You can install ZLHistogramAudioPlot
through CocoaPods adding the following to your Podfile:
你可以用CocoaPods来安装ZLHistogramAudioPlot
pod 'ZLHistogramAudioPlot'
Usage - 使用
Checkout the demo app for an example.
下载demo app来看源码吧:
Customizable attributes:
可以定制的属性:
/// The upper bound of the frequency range the audio plot will display. Default: /// 10000Hz @property (nonatomic) float maxFrequency;/// The lower bound of the frequency range the audio plot will display. Default: /// 1200Hz @property (nonatomic) float minFrequency; /// The number of bins in the audio plot. Default: 30 @property (nonatomic) NSUInteger numOfBins; /// The padding of each bin in percent width. Default: 0.1 @property (nonatomic) CGFloat padding; /// The gain applied to the height of each bin. Default: 10 @property (nonatomic) CGFloat gain; /// A float that specifies the vertical gravitational acceleration applied to /// each bin. Default: 10 pixel/sec^2 @property (nonatomic) float gravity; /// The color of all bins in the audio plot. @property (strong, nonatomic) UIColor *color; /// An array of color objects defining the color of each bin in the audio plot. /// If not set, the color attribute will be used instead. Currently only /// supported by plot type EZPlotTypeBuffer. @property (strong, nonatomic) NSArray *colors;
Dependencies - 依赖关系
ZLHistogramAudioPlot
is a subclass ofEZAudioPlot
. It requires EZAudio. ZLHistogramAudioPlot继承自EZAudioPlot,它需要EZAudio框架支持- It also requires Accelerate framework for hardware acceleration. 他也需要Accelerate来支持硬件加速
Compatibilty - 兼容性
ZLHistogramAudioPlot
uses the following interface provided by EZAudio to get audio data:
ZLHistogramAudioPlot是使用以下的接口来获取到EZAudio的audio数据的:
- (void)updateBuffer:(float *)buffer withBufferSize:(UInt32)bufferSize;
It can be easily modified to work with Audio Unit and Core Audio.
你也可以简单的修改到支持 Audio Unit 与 Core Audio
Requirements - 需要的环境
- iOS 6 or higher. iOS 6 +
- Automatic Reference Counting (ARC). ARC
License
ZLHistogramAudioPlot is available under the MIT license. See the LICENSE file for more info.
转载于:https://www.cnblogs.com/YouXianMing/p/4246756.html
[翻译] ZLHistogramAudioPlot相关推荐
- Mysql函数group_concat、find_in_set 多值分隔字符字段进行数据库字段值翻译
Mysql函数group_concat.find_in_set进行数据库字段值翻译 场景 配方表:记录包含的原料 sources表示原料,字段值之间用逗号分隔 原料表:对应原料id和原料名称 现需要查 ...
- “Attention is All You Need 翻译
<p><img src="output_0_0.png" alt="png"></p> "Attention is ...
- 基于PyTorch的Seq2Seq翻译模型详细注释介绍(一)
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明. 本文链接:https://blog.csdn.net/qysh123/article/deta ...
- 全文翻译(全文合集):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning
全文翻译(全文合集):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 摘要 人们越来越需要将机器学习应用到各种各样 ...
- 全文翻译(四) TVM An Automated End-to-End Optimizing Compiler
全文翻译(四) TVM An Automated End-to-End Optimizing Compiler 6.3 嵌入式GPU评估 对于移动GPU实验,在配备ARM Mali-T860MP4 G ...
- 全文翻译(三) TVM An Automated End-to-End Optimizing Compiler
全文翻译(三) TVM An Automated End-to-End Optimizing Compiler 5. 自动化优化 考虑到一组丰富的调度原语,剩下的问题是为DL模型的每一层,找到最佳的算 ...
- 全文翻译(二): TVM: An Automated End-to-End Optimizing Compiler for Deep Learning
全文翻译(二): TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 3.优化计算图 计算图是在DL框架中表示程序的常 ...
- 全文翻译(一):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning
全文翻译(一):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 摘要 人们越来越需要将机器学习应用到各种各样的硬件 ...
- YOLOv4全文阅读(全文中文翻译)
YOLOv4全文阅读(全文中文翻译) YOLOv4: Optimal Speed and Accuracy of Object Detection 论文链接: https://arxiv.org/pd ...
最新文章
- Xenapp安装后手动更改XML Service端口,以便使用不同于 IIS 的端口
- wordpress搭建个人博客
- android 是否允许打印debug级别日志的开关_log日志功能及设置方法
- R语言forestmodel包使用教程
- RabbitMQ 四种Exchange
- Android---Activity 生命周期(三)Stopping Activity Restarting Activity
- 1003 Emergency (25 分)【Dijastra与DFS解法】
- 列表和字典循环遍历时的删除问题,集合
- 【matlab-7】Matlab与线性代数(三)
- 7月送书中奖名单,快看!
- Scala class
- TableView 截图
- python 对象引用,可变性,垃圾回收
- python下载安装-Python下载安装
- 时间序列的归一化方法
- SQL Server数据库的查询语句
- 截止到2022年9月底可用的与大屏可视化相关的网站和网页
- PS、PR素材资源网站
- linux系统硬盘坏道,Linux下两种修复硬盘坏道方法
- kindle3nbsp;注册地址,美国地址…
热门文章
- MyBatis:事务回滚
- iOS用workspace和cocoapods管理多个项目
- mysql中max_allowed_packet参数的配置方法(避免大数据写入或者更新失败)
- [大数据可视化]-saiku的源码包Bulid常见问题和jar包
- .net core学习
- Ace教你一步一步做Android新闻客户端(三) JSON数据解析
- htaccess文件,强大的功能
- jdbc各种数据库的连接说明
- Android 最新左右可见上下页的banner实现demo
- Android 集成支付宝支付,支付宝支付2.0