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 of EZAudioPlot. 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相关推荐

  1. Mysql函数group_concat、find_in_set 多值分隔字符字段进行数据库字段值翻译

    Mysql函数group_concat.find_in_set进行数据库字段值翻译 场景 配方表:记录包含的原料 sources表示原料,字段值之间用逗号分隔 原料表:对应原料id和原料名称 现需要查 ...

  2. “Attention is All You Need 翻译

    <p><img src="output_0_0.png" alt="png"></p> "Attention is ...

  3. 基于PyTorch的Seq2Seq翻译模型详细注释介绍(一)

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明. 本文链接:https://blog.csdn.net/qysh123/article/deta ...

  4. 全文翻译(全文合集):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

    全文翻译(全文合集):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 摘要 人们越来越需要将机器学习应用到各种各样 ...

  5. 全文翻译(四) TVM An Automated End-to-End Optimizing Compiler

    全文翻译(四) TVM An Automated End-to-End Optimizing Compiler 6.3 嵌入式GPU评估 对于移动GPU实验,在配备ARM Mali-T860MP4 G ...

  6. 全文翻译(三) TVM An Automated End-to-End Optimizing Compiler

    全文翻译(三) TVM An Automated End-to-End Optimizing Compiler 5. 自动化优化 考虑到一组丰富的调度原语,剩下的问题是为DL模型的每一层,找到最佳的算 ...

  7. 全文翻译(二): TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

    全文翻译(二): TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 3.优化计算图 计算图是在DL框架中表示程序的常 ...

  8. 全文翻译(一):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

    全文翻译(一):TVM: An Automated End-to-End Optimizing Compiler for Deep Learning 摘要 人们越来越需要将机器学习应用到各种各样的硬件 ...

  9. YOLOv4全文阅读(全文中文翻译)

    YOLOv4全文阅读(全文中文翻译) YOLOv4: Optimal Speed and Accuracy of Object Detection 论文链接: https://arxiv.org/pd ...

最新文章

  1. 2000行代码实现软渲染引擎
  2. 2020年共享汽车发展趋势研究报告
  3. getAttribute和getParameter的区别
  4. 目前计算机应用最广的领悟是,最新职中计算机应用基础期中考试试题及答案
  5. 2022 基于SpringBoot/SSM的数据库查询平台
  6. cglib动态代理实现及其原理浅析
  7. Lumion文件结构及Benchmark in progrees问题
  8. Windows 7 - TeamViewer 13 安装
  9. keil中设置的flash(irom)的起始地址为0x08000000,这个0x08000000的意义------stm32地址映射图解析
  10. 极速狂飙 无线网BT下载使用技巧全攻略
  11. 如何下载北京城区卫星地图高清版大图
  12. 5G/NR 下行物理信道之PDCCH概要
  13. Tecohoo VD-206全高清视频会议摄像机
  14. python面试自我介绍_我的python面试简历
  15. Redis数据类型汇总
  16. springboot停车场车辆定位管理可视化分析系统的设计与实现毕业设计源码101702
  17. 获取控件在屏幕上的xy轴位置
  18. 缓和曲线09正弦一波型
  19. 05 OpenCV色彩空间处理
  20. Python基础学习笔记-8.文件、异常和模块

热门文章

  1. jeecms添加站点
  2. ThinkPHP框架知识的注意点
  3. Quartz实现定时功能 job.xml文件的配置
  4. Java 深copy 浅copy 引用copy
  5. vue.js框架的生命周期:常用钩子函数
  6. 反编译一款APP然后重新打包(Windows环境)
  7. Android.View.InflateException: Binary XML File Line #异常的解决
  8. Android 设置view透明度,广告标题透明背景
  9. android 监听webView滑动距离和标题栏颜色渐变
  10. cesium label 显示隐藏到地底下