Title: PHP UDPsocket controller for Simple Parametric Sound Synthesis
1PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- MUMT 301 Project Presentation
- March 15, 2007
- Federico OReilly Regueiro
2PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- Motivation
- Use of the internet as a medium for realtime
communication and the creation of virtual
environments. - Beyond the Live vs Virtual interaction debate
- Bandwidth constraints
- Desire to learn PHP
3PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- CD quality bandwidth
- 44100 x 16bits x 2 1411200 b/s
- Roughly 1.35 Mb/s
- Either sample accurate or with a considerable
buffer.
4PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- Solutions, as weve already seen
- Either improve bandwidth...
- Or
- Encode at server side and decode at client side
5PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- Case Audio is synthesized (its not captured)
- Redundant to generate sound at server side, then
encode and later encode. - Better to send control a synthesis module
6PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- Example
- Chris Brown and John Bischoffs eternal
network music which lives at http//crossfade.wal
kerart.org/ - Barbosa, p 3
- Use of jsyn API (application programming
interface)
7PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- Jsyn
- Cross platform java API (Win, Mac, Linux)
- Sound platform dependent - scheduling
- Uses native C code (faster than java)
- Uses unit generators
- 32 bit floating point values
- Time stamped
- Free
8PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
9PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- Final project
- As mentioned, exercise in PHP
- Exercise in sockets
- Loosely follows eternal model
- Server
- Browser interface PHP-socket
- Sound client
- Socket client synthesis module
10PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- PHP
- server side scripting
- Has similarities with C but its interpreted
- Originally Personal Home Page, then PHP
hypertext preprocessor - Processes on server side and sends data to browser
11PHP example-http//www.friketrike.com/phpininos/
-
-
- echo "Hello World in php"
- txt1"Hello World"
- echo "Have a nice day!"
- i1
- echo "
" - while(i
-
- echo "The number is " . i . "
" - i
- sleep (3)
-
- ?
-
12PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- UDP vs TCP
- UDP does not guarantee packet delivery and packet
ordering, but is much faster. - Good enough for this project
13PHP UDP-socket controllerfor Simple Parametric
Sound Synthesis
- Project works in tandem with 307 project, a sound
effects synthesis module which will be on the
client side.