File size: 899 Bytes
a277254
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import numpy as np
import matplotlib.pyplot as plt

def generate_brainwave(frequency, duration, sampling_rate=1000):
    t = np.linspace(0, duration, int(sampling_rate * duration), endpoint=False)
    wave = np.sin(2 * np.pi * frequency * t)
    return t, wave

def combine_waves(waves):
    combined_wave = np.sum(waves, axis=0)
    return combined_wave / len(waves)

# Define parameters
duration = 5  # seconds
sampling_rate = 1000  # samples per second

# Generate individual waves
t, alpha_wave = generate_brainwave(10, duration, sampling_rate)  # Alpha (10 Hz)
_, beta_wave = generate_brainwave(20, duration, sampling_rate)    # Beta (20 Hz)

# Combine waves to create a "wealthy brain frequency"
wealthy_brain_wave = combine_waves([alpha_wave, beta_wave])

# Plot the wave
plt.plot(t, wealthy_brain_wave)
plt.title(".159 Incorporated")
plt.xlabel("Time (s)")
plt.ylabel("Amplitude")
plt.show()