"multi dimensional mandelbrot computing"
Bootstrap 4.1.1 Snippet by Agnit360

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
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
</div>using System;
using System.Numerics;
using System.Media;
class MandelbrotMusic
{
static void Main()
{
const int width = 800; // Define the width and height of the Mandelbrot set area
const int height = 800;
const double xmin = -2.5;
const double xmax = 1.5;
const double ymin = -2.0;
const double ymax = 2.0;
const int maxIterations = 1000; // Maximum number of iterations
// Create a SoundPlayer instance to play the generated music
SoundPlayer player = new SoundPlayer();
// Calculate the musical notes based on the Mandelbrot set
double xStep = (xmax - xmin) / width;
double yStep = (ymax - ymin) / height;
for (double y = ymin; y < ymax; y += yStep)
{
for (double x = xmin; x < xmax; x += xStep)
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: