Tag Archives: Micromegas

Micromégas (Voltaire, 1752)

//JavaScript for 3-D audio visualiser (based on Three.js => https://github.com/mrdoob/three.js/)
<canvas id="spectrogram"></canvas>
//<button class="play-button">Play</button>
<script type="module">
    import * as THREE from 'https://christopher-germann.de/three.module.js';

    document.addEventListener('DOMContentLoaded', () => {
        let audioContext; // Declare audio context variable

        // Function to initialise audio context
        function