Giter Site home page Giter Site logo

mehmetcanbudak / teensy-variable-playback Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newdigate/teensy-variable-playback

0.0 2.0 0.0 479 KB

variable playback rate for teensy audio library

License: MIT License

CMake 2.38% C++ 96.61% C 0.65% Shell 0.36%

teensy-variable-playback's Introduction

variable rate playback for teensy audio library

Teensy 4.0 teensy40 Ubuntu-x64 MIT license CMake made-for-VSCode made with JetBrains Clion

A set of classes to read and play 16-bit raw mono audio from micro sd-card at variable forward and backward playback rates on teensy

  • for best performance, use SDXC UHS 30MB/sec Application Performance Class 2 (A2) class micro sd-card.

todo

  • improve looping controls, allow xm-tracker like sample looping,
    • loop start and finish markers, ping ponging, repeating, etc.
  • stereo

requirements

dependencies

graph G {
  graph[rankdir="LR"]
  "teensy variable playback" -- "teensy-cmake-macros" -- "cmake" [label="dev"]
  "teensy-cmake-macros" -- "arm-none-eabi-gcc"  [label="dev"]
  "PaulStoffregen/Audio.git" -- "PaulStoffregen/cores.git"
  "teensy variable playback" -- "PaulStoffregen/Audio.git"
  "PaulStoffregen/Audio.git" -- "PaulStoffregen/SD.git@Juse_Use_SdFat"
  "PaulStoffregen/SD.git@Juse_Use_SdFat" -- "PaulStoffregen/SPI.git"
  "PaulStoffregen/SD.git@Juse_Use_SdFat" -- "greiman/SdFat.git"
  "PaulStoffregen/Audio.git" -- "PaulStoffregen/Wire.git"
  "PaulStoffregen/Audio.git" -- "PaulStoffregen/SerialFlash.git"
  "PaulStoffregen/Audio.git" -- "PaulStoffregen/arm_math.git"
}

code structure

folder target description
examples teensy basic example how to use
src teensy /
test
extends teensy audio library
* adds AudioPlaySdRawResmp
* play raw audio at variable forward and backward playback rates
test test unit tests that run on linux x64 or x86 architecture,
tests certain non-audio code in src folder

build and run/debug tests locally on pc

clone repo

> git clone https://github.com/newdigate/teensy-variable-playback.git
> cd teensy-variable-playback
  • manual configuration steps required:
    • if you just want to compile, and run/debug the tests, you can comment out the audio subdirectory in the root CMakeLists.txt
      • add_subdirectory(audio) -> #add_subdirectory(audio)
    • update examples/CMakeLists.cmake.in:
      • set cmake path variables to point to your arm gcc toolchain, teensy cores, and library dependencies
set(COMPILERPATH "/Users/xxx/gcc-arm-none-eabi-7-2017-q4-major/bin/")
set(DEPSPATH "/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries")
set(COREPATH "/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4/")

build tests on linux

> ./build

build tests on win

> mkdir cmake-build-debug
> cd cmake-build-debug
> cmake -DCMAKE_BUILD_TYPE=Debug
> make

run tests

> cmake-build-debug/test/test_suite1

visual studio code

  • download vs code
    • install plug-in ms-vscode.cpptools
  • open root folder of repository in visual studio code
  • open terminal in visual studio code build, build as above
  • (add breakpoint)
  • launch

teensy-variable-playback's People

Contributors

newdigate avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.