Setup and usage - Apolotary/NetsendPD GitHub Wiki
Setup
-
Download or clone this repository to your local folder. Open up and try to build an iOS project.
-
If you're using an updated version of libpd and you have no sound, take a look at this issue
-
Go to Pd patch and scripts folder and check if Pd patch has all externals up and running, and python script runs without compatibility errors. You might need to install the following modules: pyosc, pybonjour
-
Finally, connect your Mac/PC server to your wireless router via LAN cable and turn off wireless network. If possible, switch the wireless router to 5Ghz frequency. Ideally, this would mitigate most of the network issues. If this frequency is not available, try at least a wired LAN connection for server, as it would still significantly reduce network noise.
Usage
- Go to Pd patch and scripts folder, open up multistream.pd (see further about picking sound sources)
- In Xcode project, build this application for every device you want to use.
- When application starts, select a unique channel number (in current demo 1-6)
- In Pd patch and scripts folder, run the bonjourBrowseOSC.py script
- You should hear some white noise and oscillating sound coming from your device. If you don't hear anything, check for volume level, and make sure that silent mode is switched off
Picking a sound source
In [pd audio_source] subpatch you can find various sound sources. Simply reconnect each outlet to [s~ stream_audio_n] objects for each channel. [adc~] object is used to stream any audio received from Pd sound input device.
To route audio from elsewhere on Mac OSX you need:
- Install Soundflower
- Open Audio MIDI setup, pick Soundflower 2ch or 64ch as both default input and output
- In Pd, go to Media -> Audio Settings and pick Soundflower both as input and output.
- Run the application, script and patch. Route everything from [adc~] object in patch to streaming outputs
- Play something on your Mac, you should now hear the sound coming from iOS devices instead of speakers.
More useful blog posts on audio routing:
Live-stream system audio from OSX Mountain Lion with Icecast2 and Darkice