    // Create the context
        let context = new OfflineAudioContext(1, 4096, 48000);

        // Create the sample buffer and fill the second half with 1
        let buffer = context.createBuffer(1, 2048, context.sampleRate);
        for (let i = 1024; i < 2048; i++) {
          buffer.getChannelData(0)[i] = 1;
        }

        // Create the source and set its value
        let source = context.createBufferSource();
        source.loop = true;
        source.loopStart = 1024 / context.sampleRate;
    