Fantasía
Alejandro Campos · 2024
This project is generated from live code and contains animation with unique and infinite music. Activate the live view and press the space bar to begin playing. “What you will see on the screen is a picture of the various abstract images that might pass through your mind if you sat in a concert hall listening to this music. At first, you are conscious of the piano. Then the music begins to suggest other kinds of things to your imagination. They might be… oh, just masses of color. Or they may be cloud forms… or great landscapes, or vague shadows… or geometrical objects floating in space.” — Fantasia (Walt Disney Productions, 1940) A fantasia is a musical composition with a free form and often improvisatory style, seldom following the rules of any strict musical form. *Fantasía* (Alejandro Campos, 2024) is a generative experience born from a machine-generated musical score that informs the visual arrangement of constructed shapes, algorithmic textures, and emergent compositions. This series continues Campos’s ongoing attachment to playfulness, unencumbered acts of creativity, and the pursuit of capturing the joy of imagination. In a unique blend of generative processes, *Fantasía* uses a machine learning model connected to an algorithmic process, producing both classical compositions and playful visuals – everything happening in-browser and in real-time. The music’s AI model is trained on a large dataset of classical performances, creating a piano sheet that – as long as *Fantasía* remains open – continues an infinite improvisation that’s unique to each of the works. Each piece’s score is also used by the generative algorithm to produce a visual counterpart, like a map that traces the movements of notes on canvas: the colors capturing the different moods of each type of score, and the geometries expressing the musical structures of each composition. Seeing these artworks can evoke the experience of listening to the music once again, and with each deeper exploration of the algorithm’s range, comes familiarity with this new fantastical language. The eye moving between shapes, the drawings conveying their musical narrative – *Fantasía* hides nothing, as if speaking in universal gestures. This series uses brush.js (a library developed and open-sourced by Campos, now working without p5), TensorFlow.js (an open-source ML platform for JavaScript), Magenta.js for generating music with Magenta models, Tone.js (a Web Audio framework for creating interactive music in the browser), and several other open-source MIT license libraries. The music plays with Tone Piano, a multisampled piano implementation using Salamander Grand Piano Sounds. Created in collaboration with Adam Berninger of TENDER.
仕組み
main.js builds oscillators/synths and renders 2D canvas visuals from AnalyserNode FFT data (getByteFrequencyData, frequencyBinCount) via arc/fillStyle, so the generated sound drives the imagery.
核は「生成した音が映像を駆動するオーディオリアクティブ」です。main.js がオシレータやシンセ(createOscillator 等)で音を合成し、AnalyserNode の周波数データ(getByteFrequencyData, frequencyBinCount)を取り出して、その値を2Dキャンバスの arc/fillStyle に流し込みます。つまり鳴っている音の周波数スペクトルが、そのまま図形の大きさや色・分布に変換されます。 描画は多数の円弧やパスを粒子的に配置するパーティクル的構成で、音の起伏に応じて形が脈動します。音を可視化の入力に据えているため、メロディやリズムの変化が画面の動きと一対一で結びつくのが特徴です。音列や音色の設定がトークンごとに変わり、静かに明滅するものから激しく拡散するものまで、視聴覚の表情が分かれます。
パレット
#002185#16474a#c26646#d7d7d7#080f15#70abb4#335465#d7464c#b7b36a#cec7b5#355c8b#d2a68f#dfba35#e8edea#f7f6f2#a33a29#366c8e#f4bd48#2c695a#49443b#a86a5d#f7cc9d#d2cfcf#0e2d58#5a8a93#87b26c#a4aa35#de8da0#7facc6#4a535b#fffceb#fcd300 +107 more #e0e3d9#d4d2cb#858079#b5afa7#e97358#5d5a57#f9c3b2#be5c45 アルゴリズム
- Audio-Reactive 主 · 分類: LLM
- Particle System · 分類: LLM
詳細
出典
- IPFS
ipfs://QmQEAt4vZTmpTXi2CeoNjxJMv5aw8FqzTo1ZtV2TKzKnq6/?payload=eyJoYXNoIjoiMHhhODNmYjBiMzVjYmI2MWI1ZGVlMTgzMjg2NzY1YmNhYTFhNDMyMzQ1YTRlOGMzMTNiZWU4NTM1ZWI4NjdjZjU3IiwiZWRpdGlvbk51bWJlciI6MSwidG90YWxFZGl0aW9ucyI6NDY3LCJpbnB1dCI6eyIkdXNlcm5hbWUiOiJSeWFuIn19 - Source verse.works ↗
関連作品 (共有するアルゴリズムによる)
最終更新 2026-07-16