GithubHelp home page GithubHelp logo

mqttaudioplayer's Introduction

MQTT Audio Player

This source code is part of a bigger art project. The MQTT Audio Player receives command through MQTT and triggers sounds, depending on the current mode (which can change from time to time). The MQTT messages are sent by 25 sensors and trigger one of 25 sounds.

Pure Data Player

Samples are organised in rows (A-E) and columns (1-5) -> 25 slots for samples. The Pure data player takes care of polyphony and sample pannning (left-right, back-front)

Before sending commands via command line pdsend, pure data has to be started and the file puredata/pdAudioPlayer.pd has to be opened.

Loading patches

Single audio file can be loaded with: echo "A 1 load ../media/A1.wav" | pdsend 3000 localhost udp

Several audio files can be loaded with: echo "A 1 load ../media/A1.wav, A 2 load ../media/A2.wav, A 3 load ../media/A3.wav, A 4 load ../media/A4.wav, A 5 load ../media/A5.wav" | pdsend 3000 localhost udp

Controlling single samples

Samples can be played once via echo "A 1 play" | pdsend 3000 localhost udp

Volume can be adjusted via echo "A 1 volume 0.5" | pdsend 3000 localhost udp

Play can be stoped via echo "A 1 stop" | pdsend 3000 localhost udp

Controlling all samples at once

Samples can be played once via echo "all play" | pdsend 3000 localhost udp

Volume can be adjusted via echo "all volume 0.5" | pdsend 3000 localhost udp

Play can be stoped via echo "all stop" | pdsend 3000 localhost udp

Looping samples

Looping can be started by supplying the BPM to the loop start command echo "loop start 120" | pdsend 3000 localhost udp

Looping can be stoped like this echo "loop stop" | pdsend 3000 localhost udp

mqttaudioplayer's People

Contributors

lga avatar stoefln 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.