From Code Editor
to Art Gallery
Performance
Maciek Korsan
pogwar #02 playing softly in the background
Generative Music in the Browser
What is sound?
sound is a mechanical wave that propagates through a medium and is perceived by the sense of hearing.
Wave
Music
The art of organizing sound structures in time.
One of the fine arts that influences the human psyche through sounds.

Music
Formal notation
1757
Musikalisches
Würfelspiel
(Mozart's dice game)

Musikalisches Würfelspiel


45,949,729,863,572,161
combinations
1962
Cuban Missile
Crisis

1965
Steve Reich

It’s gonna rain
Tape looping

it's korsi.space
Phasing
a
a'
a
a'

1964
Terry Riley


In C
1978
Brian Eno

Ambient 1: Music for Airports


I just set all of these loops running and let them configure in whichever way they wanted to, and in fact the result is very, very nice. The interesting thing is that it doesn’t sound at all mechanical or mathematical as you would imagine. It sounds like some guy is sitting there playing the piano with quite intense feeling. The spacing and dynamics of “his” playing sound very well organized. That was an example of hardly interfering at all.
Brian Eno

From now on there are three alternatives: live music, recorded music and generative music. Generative music enjoys some of the benefits of both its ancestors.
Like live music, it is always different.
Like recorded music, it is free of time-and-place limitations
— you can hear it when you want and where you want.
Brian Eno

It’s possible that our grandchildren will look at us in wonder and say, ‘You mean you used to listen to exactly the same thing over and over again?’
Brian Eno

Generative music
-
must constantly change, without obvious repetition
- must play for as long as someone is willing to listen
2016
Maciek Korsan

frontend is an
art


And then I became
the sad CSS guy.
2023
korsi.space

Sounds like fun



Electronic music discovery



Collaboration with the Arsenał Gallery



Collaboration with the Arsenał Gallery
Crazy idea

pogwar
a faint murmur of sounds coming from afar.
> A programming approach to music production
<audio>
Web Audio API
Audio Context
Input
Effects
Destination
tone.js
basic synth

oscillator types

sample

in search
for the harmony
humble beginnings

triangular synths

effects


harmony

piano

noise

I have my very first composition!
4 hours left until the performance
Once I got the hang of it,
everything moved quickly.
quick ui in p5.js
THE PERFORMANCE



The performance
was a beautiful experience for me.
the story continued…
mobile version
🤳
Houston, we have a problem.
restrictions
browsers on mobile phones handle background activity differently compared to their desktop versions
performance
creating real-time systems requires a different perspective on performance compared to developing standard web applications
generative.fm
🫶

performance
effects are very resource-demanding,
especially with generated synthesizers,
and even more so when they overlap.
samples > synths
performance
not all libraries work well on mobile devices
goodbye, p5.js.
🤫 audio hack

navigator.mediaSession.metadata


navigator.mediaSession.setActionHandler


pogwar.works
beta
future plans
- app stores
-
releasing fragments on Bandcamp
-
visualizations
-
geolocation-based walk along the Ambient Avenue
-
more performances
lessons learned
-
it’s possible to perform directly from the browser
-
it’s worth testing on older devices – optimization for real-time systems is on a completely different level compared to traditional websites
-
Not everything has to be perfect to go live
-
it’s refreshing to use familiar technology to create something different than just another business project.
@maciejkorsan
thank you!
Q&A
code-gallery en
By Maciej Korsan
code-gallery en
- 39