Author Topic: MUSIC+MATHEMATICS only to abstract man  (Read 2865 times)

0 Members and 1 Guest are viewing this topic.

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
MUSIC+MATHEMATICS only to abstract man
« on: July 22, 2020, 02:21:49 pm »
Hi !
I also study the connections between mathematics and music. Music is a wave phenomenon, it can be described very well with the help of physics and mathematics. I believe that the more connections and regularities we notice from the "operation" of music, the closer we can get to understanding the world, to nature, to physics ... Because what distinguishes music from noise? Regularity of interest. Regularities that, by their very nature, can be valid for everything else ... they are wavy.
 
Because I believe that the regularities inherent in music can provide answers to hitherto unanswered science questions!
Light, matter, day and night are wavy in nature, divided into all cyclicalities, in our everyday life the repetitions… etc.… somehow everything is connected with everything.

I want to show you a pretty abstract experiment. only read by a person whose brain accommodates anything!
What is music? what makes it good do we rate a melody as good or bad?
Let’s start, perhaps, with what is the simplest, most primitive thing that can already be called music? I think it’s this: TAM-TAM-TAM-TAM… applauding or drumming or beating something to the beat, after all, it could be the simplest music. Let's start from this!
I stumbled upon a diagram of the “AND” operation that made me think. Here it happens that moving in the X and Y directions one by one, on an axis perpendicular to each other, their common result will be either 1 or 0. This is not complicated mathematics, but rather a simple one to decide. We don't see numbers.

Code: QB64: [Select]
  1. 'original, natural figure if A=1 and B = 1
  2. A = 1 'multiplier X
  3. B = 1 'multiplier Y
  4.  
  5. 'modify the A and B values and you will get a seemingly chaotic, yet orderly picture !
  6.  
  7. FOR ax = 0 TO 75
  8.     FOR ay = 0 TO 22
  9.         e = SGN((ax * A) AND (ay * B))
  10.         LOCATE ay + 1, ax + 1
  11.         IF e THEN PRINT "Ű"
  12. NEXT ay, ax
  13.  
  14.  

  [ You are not allowed to view this attachment ]  



At first glance, I thought it could even be a timeline of a 4/4 monotonous music. An infinite tam-tam. Why not ? If we are already looking into this…
So I extended this function as follows:
 
(Steps x A) AND (Steps x B) = Bar
 
A, B = arbitrary natural numbers
Steps = time is the current location. A metronome. A counter that synchronizes A and B with each other.
Bar = the result of the operation that will be significant in binary form: (eg 011001010010)
 
So I got less regularly repeating binary images, e.g.


   [ You are not allowed to view this attachment ]  

It was noticeable that although there is no pronounced symmetry in it, there is regularity, pattern, repetition in it. After all, like the structure of a piece of music.
I couldn’t wait to quickly put together the technique to convert the different tracks into sound.
Under Dos, I wrote a program on it in qbasic and directed the results of the tracks to a printer port on which I mounted active speakers.
Since I directed digital signals to this analog device, I achieved different delays for the different speakers to sound in different tones. This was important to make the result perceptible at all.



 
I became curious as to whether complex melodies or even complete music could be produced with this simple mathematical method. By changing the initial values, new “music” was always created. What I made perceptible in this way is a “drumming” similar to the sound of percussion instruments.
But what about the melodies? To extract melodies from the binary tracks, I figured out the following: the “coexistence” of multiple tracks will give the current volume value of the same instrument. For example, if we grab 3 tracks, it already means 2 on the third, i.e. 8 possible sound values. And then the sounds of C, D, E, F, G, A, H, C ’, or any sound scale can be assigned.
Life is a bit limited during Dos, but unfortunately I can only program during this. In qbasic it is possible to play the built-in small speaker of the PC at a certain frequency, so I have expanded the drumming on the 4 active speakers with +1 band, which will play melodies in the meantime.
 
Result:



 
Isn't it interesting? The juxtaposition is a bit of a clicking-beeping something, but it has the same qualities as music. And it's just math. There is no juggling, post-editing, or human intervention here!
 
From now on, the thing didn't let me calm down anymore, I wanted more! There is nothing to improve on the principle of operation, it works in the given, most primitive way. However, another technique was needed that gives more space to perceive the sounds.
 
MIDI (Wikipedia)
 
Musical Instrument Digital Interface (MIDI for short) is a standard for connecting synthesizers and studio devices. It was born in 1980 as a recommendation created by the Association of Synthesizer Manufacturers and later became the standard.
 
Under Windows, running qbasic under DOSBOX allows you to play MIDI sounds.

  [ You are not allowed to view this attachment ]  

Let's see the result:




Here's something! this needs to be researched! The melodies are all in harmony with each other. What if we emit electromagnetic waves not with sound waves but with this sorting principle? It gives energy to the material when it is tidy. What happens to the generated waves? math does not lie. It answers an ancient question! It is no coincidence that such structured melodies are created !!!!!!!
I am looking for people who have an idea to improve the idea. A good thought or question can also be worth gold!

I put all the saved music in one.


Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: MUSIC+MATHEMATICS only to abstract man
« Reply #1 on: July 24, 2020, 01:09:39 pm »
Does anyone find it interesting that these "musics" were not made by humans but were born at the touch of a button? I only had so much to do with the whole thing that I connected something random with something random, but the system was dictated by math. What my ear liked, I recorded. The math that works the same way on the other side of the universe. Everywhere.

Shouldn't that do something?





Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: MUSIC+MATHEMATICS only to abstract man
« Reply #2 on: July 24, 2020, 02:11:26 pm »
Quote
Does anyone find it interesting that these "musics" were not made by humans but were born at the touch of a button? I only had so much to do with the whole thing that I connected something random with something random, but the system was dictated by math. What my ear liked, I recorded. The math that works the same way on the other side of the universe. Everywhere.

Absolutely! It is interesting. The music is better than some New Age Stuff I use to listen to.

You are obviously having an epiphany and I didn't want to spoil the mood by expressing doubts, "that music is too good. I wonder if he is spoofing us." Where are the strings and maybe even voice singing coming from? Where is source code I can play from my computer? Sorry but it so good!  IMHO anyway :)

But thank goodness Dav prepared the way for making it believable with his music creating stuff.

I think we have a genius or two in our midst. :)
« Last Edit: July 24, 2020, 02:22:26 pm by bplus »

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: MUSIC+MATHEMATICS only to abstract man
« Reply #3 on: July 24, 2020, 03:23:50 pm »
Thank you very much for answering! 
Everything that sounds is made of midi sound samples. Directs the command to MIDI and it sounds.
The standard windows-midi is weak, you need to install better midi-sound samples on windows, which is built-in. From there, the qb program will speak on these.

All recorded music:


https://drive.google.com/file/d/192HrIudN76_Zz6tdNYNAYltY1v_X-qcc/view?usp=sharing


I would like to correct two thoughts. One is that I'm not a genius. He's more obsessed. I put too much patience into what interests me more than others. More than it should be. Anyone who is willing to push social things into the background can do that.
The other is that I don’t want a “music generator”. Music in this case is a lucky tool to connect two things. If not, we would hear noise in mp3s. Music is not the goal. I feel that this simple music-generator takes me to something higher, to help me understand something bigger.
So, please don’t see a music generator in this, but a path you can take.
I saw a lot of correlation in the program, but I got stuck. I can't go any further. I don't know how to relate this. You should have abstract thoughts, fantasy, idea. This may be the key to something. If you have no idea, the whole thing stays here on the board for fun. I feel like it's more than that.

Offline ejyowaw24

  • Newbie
  • Posts: 1
    • View Profile
Re: MUSIC+MATHEMATICS only to abstract man
« Reply #4 on: July 24, 2020, 06:03:29 pm »
This is quite wonderful.  A new universal language to soothe the savage beasts.  You sir are amazing.  Thank you for sharing this gem.