Waitrud Weber’s blog

things and reminders for memories

sounds: windows-make: Sequence of synthesizer.

Now we are going to create synthesizer.

1, Create the Seqence on the memories.

The Seqence is going as scalar and increasing and returns to fist number like 0.
0
1
2
3
4

Sequence number.
1. total
2. divided seconds on a frame.

1/60 =
(1 second)

char[255] seqence;

 

.\Sequence.cpp  Fri May 28 21:02:28 2021

  1 :#include 
  2 :#include "Sequence.h"
  3 :
  4 :char seqence[60 * 8];
  5 :int total_num_seqence = 60 * 8;
  6 :float frame_rate = 1.0f/60.0f; // on a second.
  7 :
  8 :
  9 :int loop_001 () ;
 10 :
 11 :int loop_001 () {
 12 :
 13 :	for ( int i=0; i<total_num_seqence; i++ ) {
 14 :		seqence[i] = 0;
 15 :	}
 16 :
 17 :	return 0;
 18 :}
 19 :
 20 :
 21 :
 22 :
 23 :
 24 :

1. num 0 - 255 express music notes.
2. 0 - 7 octave needs 1 bits.
3. 0 - 12 octabe needs 2 bits.