GithubHelp home page GithubHelp logo

streaming_example's Introduction

Sample Streaming Demo

This repository contains a JUCE project which demonstrates the usage of the HISE streaming engine in a pure C++ context. It's a simple audio plugin that loads a given samplemap (the Musicbox from the tutorial) and its HLAC compressed monolith file and plays it back using the default JUCE synthesiser class.

This is just a barebone-access to the streaming engine of HISE so you have to implement these things for yourself:

  • envelopes, filters, effects
  • MIDI processing
  • file management (this project just uses one monolith and expects it to be on the desktop, so you need to add custom file handling for actual projects)
  • multimic samplemaps are not supported
  • RR group logic is not implemented (but you can take the RRGroup property from the samplemap to add your own handling).

It's currently tested only on Windows, but I'll check macOS and iOS later.

How to use this project

  1. Grab the latest HISE repository to make sure that you have the current code. Currently I am stuck on JUCE 4.3.1 for HISE, but the hi_lac and the hi_streaming module should also work with newer versions.
  2. Open the .jucer file to create your IDE project files.
  3. Download this monolith sample file and put it on your desktop.
  4. Compile the project and load the plugin.
  5. Play some notes. There are only ~2 octaves mapped, so don't freak out if you don't hear anything :)

Where to go from here

If you want to use the HISE Streaming engine in your project, you most likely want to add more advanced features. Basically, you just need to create your own implementations of

  1. A sample pool (derived from the StreamingSamplerPool) which manages the lifetime of your loaded samples and parses the sample map
  2. A wrapper for the StreamingSamplerSound class, which adds additional logic to the selection of the samples (like Round Robin etc).
  3. A wrapper for the StreamingSamplerVoice which renders your voices and applies envelopes, filters etc. on it.

You can take a look at the example implementations in the StreamingExample.cpp file, or even take a look at how HISE is using these classes for an advanced use case here and here.

License

This example project has the same license as the HISE codebase (GPL v3). If you're interested in licensing just the streaming engine for your closed source JUCE project, get in touch with me, then we'll discuss the details.

streaming_example's People

Contributors

christoph-hart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

streaming_example's Issues

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.