mirror of
https://github.com/elder-plinius/binaural-beats-generator.git
synced 2026-07-13 14:27:21 +02:00
Update binauralGenerator.js
This commit is contained in:
@@ -15,14 +15,6 @@ rightOscillator.connect(rightPan);
|
||||
leftPan.connect(context.destination);
|
||||
rightPan.connect(context.destination);
|
||||
|
||||
chrome.storage.sync.get(['baseFrequency', 'beatFrequency'], (data) => {
|
||||
let baseFrequency = data.baseFrequency || 300;
|
||||
let beatFrequency = data.beatFrequency || 10;
|
||||
|
||||
leftOscillator.frequency.value = baseFrequency - (beatFrequency / 2);
|
||||
rightOscillator.frequency.value = baseFrequency + (beatFrequency / 2);
|
||||
});
|
||||
|
||||
let isPlaying = false;
|
||||
|
||||
function togglePlayPause() {
|
||||
|
||||
Reference in New Issue
Block a user