libmsx
C library for MSX
Loading...
Searching...
No Matches
scc_wav.h
Go to the documentation of this file.
1// -*- coding: utf-8-unix -*-
2/*
3 * Copyright (c) 2021-2024 Daishi Mori (mori0091)
4 *
5 * This software is released under the MIT License.\n
6 * See https://github.com/mori0091/libmsx/blob/main/LICENSE
7 *
8 * GitHub libmsx project\n
9 * https://github.com/mori0091/libmsx
10 */
17#pragma once
18
19#ifndef SCC_WAV_H_
20#define SCC_WAV_H_
21
22#include <stdint.h>
23
32extern const int8_t SCC_WAVEFORM_PULSE_31_32[32];
33extern const int8_t SCC_WAVEFORM_PULSE_30_32[32];
34extern const int8_t SCC_WAVEFORM_PULSE_29_32[32];
35extern const int8_t SCC_WAVEFORM_PULSE_28_32[32];
36extern const int8_t SCC_WAVEFORM_PULSE_27_32[32];
37extern const int8_t SCC_WAVEFORM_PULSE_26_32[32];
38extern const int8_t SCC_WAVEFORM_PULSE_25_32[32];
39extern const int8_t SCC_WAVEFORM_PULSE_24_32[32];
40extern const int8_t SCC_WAVEFORM_PULSE_23_32[32];
41extern const int8_t SCC_WAVEFORM_PULSE_22_32[32];
42extern const int8_t SCC_WAVEFORM_PULSE_21_32[32];
43extern const int8_t SCC_WAVEFORM_PULSE_20_32[32];
44extern const int8_t SCC_WAVEFORM_PULSE_19_32[32];
45extern const int8_t SCC_WAVEFORM_PULSE_18_32[32];
46extern const int8_t SCC_WAVEFORM_PULSE_17_32[32];
47extern const int8_t SCC_WAVEFORM_PULSE_16_32[32];
48extern const int8_t SCC_WAVEFORM_PULSE_15_32[32];
49extern const int8_t SCC_WAVEFORM_PULSE_14_32[32];
50extern const int8_t SCC_WAVEFORM_PULSE_13_32[32];
51extern const int8_t SCC_WAVEFORM_PULSE_12_32[32];
52extern const int8_t SCC_WAVEFORM_PULSE_11_32[32];
53extern const int8_t SCC_WAVEFORM_PULSE_10_32[32];
54extern const int8_t SCC_WAVEFORM_PULSE_9_32[32];
55extern const int8_t SCC_WAVEFORM_PULSE_8_32[32];
56extern const int8_t SCC_WAVEFORM_PULSE_7_32[32];
57extern const int8_t SCC_WAVEFORM_PULSE_6_32[32];
58extern const int8_t SCC_WAVEFORM_PULSE_5_32[32];
59extern const int8_t SCC_WAVEFORM_PULSE_4_32[32];
60extern const int8_t SCC_WAVEFORM_PULSE_3_32[32];
61extern const int8_t SCC_WAVEFORM_PULSE_2_32[32];
62extern const int8_t SCC_WAVEFORM_PULSE_1_32[32];
63
64#define SCC_WAVEFORM_PULSE_15_16 SCC_WAVEFORM_PULSE_30_32
65#define SCC_WAVEFORM_PULSE_14_16 SCC_WAVEFORM_PULSE_28_32
66#define SCC_WAVEFORM_PULSE_13_16 SCC_WAVEFORM_PULSE_26_32
67#define SCC_WAVEFORM_PULSE_12_16 SCC_WAVEFORM_PULSE_24_32
68#define SCC_WAVEFORM_PULSE_11_16 SCC_WAVEFORM_PULSE_22_32
69#define SCC_WAVEFORM_PULSE_10_16 SCC_WAVEFORM_PULSE_20_32
70#define SCC_WAVEFORM_PULSE_9_16 SCC_WAVEFORM_PULSE_18_32
71#define SCC_WAVEFORM_PULSE_8_16 SCC_WAVEFORM_PULSE_16_32
72#define SCC_WAVEFORM_PULSE_7_16 SCC_WAVEFORM_PULSE_14_32
73#define SCC_WAVEFORM_PULSE_6_16 SCC_WAVEFORM_PULSE_12_32
74#define SCC_WAVEFORM_PULSE_5_16 SCC_WAVEFORM_PULSE_10_32
75#define SCC_WAVEFORM_PULSE_4_16 SCC_WAVEFORM_PULSE_8_32
76#define SCC_WAVEFORM_PULSE_3_16 SCC_WAVEFORM_PULSE_6_32
77#define SCC_WAVEFORM_PULSE_2_16 SCC_WAVEFORM_PULSE_4_32
78#define SCC_WAVEFORM_PULSE_1_16 SCC_WAVEFORM_PULSE_2_32
79
80#define SCC_WAVEFORM_PULSE_7_8 SCC_WAVEFORM_PULSE_28_32
81#define SCC_WAVEFORM_PULSE_6_8 SCC_WAVEFORM_PULSE_24_32
82#define SCC_WAVEFORM_PULSE_5_8 SCC_WAVEFORM_PULSE_20_32
83#define SCC_WAVEFORM_PULSE_4_8 SCC_WAVEFORM_PULSE_16_32
84#define SCC_WAVEFORM_PULSE_3_8 SCC_WAVEFORM_PULSE_12_32
85#define SCC_WAVEFORM_PULSE_2_8 SCC_WAVEFORM_PULSE_8_32
86#define SCC_WAVEFORM_PULSE_1_8 SCC_WAVEFORM_PULSE_4_32
87
88#define SCC_WAVEFORM_PULSE_3_4 SCC_WAVEFORM_PULSE_24_32
89#define SCC_WAVEFORM_PULSE_2_4 SCC_WAVEFORM_PULSE_16_32
90#define SCC_WAVEFORM_PULSE_1_4 SCC_WAVEFORM_PULSE_8_32
91
92#define SCC_WAVEFORM_PULSE_1_2 SCC_WAVEFORM_PULSE_16_32
93
94#define SCC_WAVEFORM_SQUARE SCC_WAVEFORM_PULSE_16_32
95
96extern const int8_t SCC_WAVEFORM_TRIANGLE[32];
97
98extern const int8_t SCC_WAVEFORM_SIN[32];
99
102#endif // SCC_WAV_H_
const int8_t SCC_WAVEFORM_PULSE_7_32[32]
Pulse wave. (duty ratio = 7/32)
const int8_t SCC_WAVEFORM_PULSE_1_32[32]
Pulse wave. (duty ratio = 1/32)
const int8_t SCC_WAVEFORM_PULSE_8_32[32]
Pulse wave. (duty ratio = 8/32)
const int8_t SCC_WAVEFORM_PULSE_18_32[32]
Pulse wave. (duty ratio = 18/32)
const int8_t SCC_WAVEFORM_PULSE_9_32[32]
Pulse wave. (duty ratio = 9/32)
const int8_t SCC_WAVEFORM_PULSE_22_32[32]
Pulse wave. (duty ratio = 22/32)
const int8_t SCC_WAVEFORM_PULSE_30_32[32]
Pulse wave. (duty ratio = 30/32)
const int8_t SCC_WAVEFORM_PULSE_31_32[32]
Pulse wave. (duty ratio = 31/32)
const int8_t SCC_WAVEFORM_PULSE_12_32[32]
Pulse wave. (duty ratio = 12/32)
const int8_t SCC_WAVEFORM_PULSE_10_32[32]
Pulse wave. (duty ratio = 10/32)
const int8_t SCC_WAVEFORM_PULSE_2_32[32]
Pulse wave. (duty ratio = 2/32)
const int8_t SCC_WAVEFORM_PULSE_4_32[32]
Pulse wave. (duty ratio = 4/32)
const int8_t SCC_WAVEFORM_PULSE_15_32[32]
Pulse wave. (duty ratio = 15/32)
const int8_t SCC_WAVEFORM_PULSE_21_32[32]
Pulse wave. (duty ratio = 21/32)
const int8_t SCC_WAVEFORM_PULSE_19_32[32]
Pulse wave. (duty ratio = 19/32)
const int8_t SCC_WAVEFORM_PULSE_25_32[32]
Pulse wave. (duty ratio = 25/32)
const int8_t SCC_WAVEFORM_PULSE_13_32[32]
Pulse wave. (duty ratio = 13/32)
const int8_t SCC_WAVEFORM_PULSE_14_32[32]
Pulse wave. (duty ratio = 14/32)
const int8_t SCC_WAVEFORM_SIN[32]
Sine wave.
const int8_t SCC_WAVEFORM_PULSE_3_32[32]
Pulse wave. (duty ratio = 3/32)
const int8_t SCC_WAVEFORM_PULSE_16_32[32]
Pulse wave. (duty ratio = 16/32)
const int8_t SCC_WAVEFORM_PULSE_5_32[32]
Pulse wave. (duty ratio = 5/32)
const int8_t SCC_WAVEFORM_PULSE_6_32[32]
Pulse wave. (duty ratio = 6/32)
const int8_t SCC_WAVEFORM_PULSE_28_32[32]
Pulse wave. (duty ratio = 28/32)
const int8_t SCC_WAVEFORM_PULSE_26_32[32]
Pulse wave. (duty ratio = 26/32)
const int8_t SCC_WAVEFORM_PULSE_23_32[32]
Pulse wave. (duty ratio = 23/32)
const int8_t SCC_WAVEFORM_PULSE_11_32[32]
Pulse wave. (duty ratio = 11/32)
const int8_t SCC_WAVEFORM_PULSE_29_32[32]
Pulse wave. (duty ratio = 29/32)
const int8_t SCC_WAVEFORM_PULSE_27_32[32]
Pulse wave. (duty ratio = 27/32)
const int8_t SCC_WAVEFORM_PULSE_24_32[32]
Pulse wave. (duty ratio = 24/32)
const int8_t SCC_WAVEFORM_PULSE_20_32[32]
Pulse wave. (duty ratio = 20/32)
const int8_t SCC_WAVEFORM_TRIANGLE[32]
Trianguler wave.
const int8_t SCC_WAVEFORM_PULSE_17_32[32]
Pulse wave. (duty ratio = 17/32)