SynthLib

F# Project - Sound Synthesis

View the Project on GitHub PaulMarisOUMary/ALGOSUP_2022_Project_3_B

Module Wav

Wav

module Wav

Attributes: none

Methods:

EncodeWav


method EncodeWav (path:string) (data:byte[])

Example Usage:

Wav.EncodeWav @"../../../../YourWavName.wav" bitarray

Parameters:

path : mandatory

Define the path of your wav file.

Type : string

data : mandatory The byte data you want to encode.

Type : Byte[]

Returns:

Write a .wav file at the specified path.

Type : .wav

DecodeWav


method DecodeWav (path:string)

Example Usage:

Wav.DecodeWav @"../../../../YourWavName.wav"

Parameters:

path : mandatory

Define the path of your wav file.

Type : string

Returns:

Decode a .wav file at the specified path and return a byte array.

Type : Byte[]

ToByteArray


method ToByteArray (data:float list)

Example Usage:

Wav.ToByteArray yourwavelist

Parameters:

data : mandatory The list you want to convert.

Type : list<float>

Returns:

Convert a list of float into a byte array.

Type : Byte[]