SynthLib

F# Project - Sound Synthesis

View the Project on GitHub PaulMarisOUMary/ALGOSUP_2022_Project_3_B

Module Note

Note

module Note

Attributes: none

Methods:

Types:

GetFrequency


method GetFrequency (note:Note) (octave: int)

Return the frequency in function of a note and octave. This method is mainly use in the Wave.MakeNote method.

Example Usage:

let calculateFrequency = Note.GetFrequency Note.A 4

Returns a frequency of Note.A octave 4.

Parameters:

note : mandatory

Type : Note

octave : mandatory The octave, between [0 and 8].

Type : int

Returns :

Returns the frequency. Type : float

Note


type Note

The note type. Mainly use in the GetFrequency method and while creating sounds. This type is in agreement with the music range.

Values:

- A
- As
- B
- C
- Cs
- D
- Ds
- E
- F
- Fs
- G
- Gs
- LFO
- REST // avoid computation of the wave returns always 0
- DEBUG // used to debug and visualize waves with Charts