-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathindex.ts
More file actions
115 lines (110 loc) · 2.63 KB
/
index.ts
File metadata and controls
115 lines (110 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { StackNavigationProp } from '@react-navigation/stack';
import Piano from './Piano';
import Metronome from './Metronome';
import Oscillator from './Oscillator';
import DrumMachine from './DrumMachine';
import AudioFile from './AudioFile';
import AudioVisualizer from './AudioVisualizer';
import OfflineRendering from './OfflineRendering';
import Record from './Record/Record';
import PlaybackSpeed from './PlaybackSpeed/PlaybackSpeed';
import Worklets from './Worklets/Worklets';
import Streaming from './Streaming/Streaming';
import MediTest from './Midi/Midi';
type NavigationParamList = {
Oscillator: undefined;
Metronome: undefined;
DrumMachine: undefined;
Piano: undefined;
TextToSpeech: undefined;
AudioFile: undefined;
PlaybackSpeed: undefined;
AudioVisualizer: undefined;
OfflineRendering: undefined;
Record: undefined;
Worklets: undefined;
Streamer: undefined;
MediTest: undefined;
};
export type ExampleKey = keyof NavigationParamList;
export type MainStackProps = StackNavigationProp<NavigationParamList>;
export interface Example {
key: ExampleKey;
title: string;
subtitle: string;
screen: React.FC;
}
export const Examples: Example[] = [
{
key: 'MediTest',
title: 'Medi Test',
subtitle: 'Test react-native-medi turbo module',
screen: MediTest,
},
{
key: 'DrumMachine',
title: 'Drum Machine',
subtitle: 'Create drum patterns',
screen: DrumMachine,
},
{
key: 'Piano',
title: 'Simple Piano',
subtitle: 'Play some notes',
screen: Piano,
},
{
key: 'AudioFile',
title: 'Audio File',
subtitle: 'Play an audio file',
screen: AudioFile,
},
{
key: 'PlaybackSpeed',
title: 'Playback Speed',
subtitle: 'Control playback speed of audio',
screen: PlaybackSpeed,
},
{
key: 'Metronome',
title: 'Metronome',
subtitle: 'Keep time with the beat',
screen: Metronome,
},
{
key: 'Oscillator',
title: 'Oscillator',
subtitle: 'Generate sound waves',
screen: Oscillator,
},
{
key: 'AudioVisualizer',
title: 'Audio Visualizer',
subtitle: 'Visualize audio data',
screen: AudioVisualizer,
},
{
key: 'OfflineRendering',
title: 'Offline Rendering',
subtitle: 'Rendering audio in offline',
screen: OfflineRendering,
},
{
key: 'Record',
title: 'Record',
subtitle: 'Record audio',
screen: Record,
},
{
key: 'Worklets',
title: 'Worklets',
subtitle: 'Process audio on ui thread with worklet support',
screen: Worklets,
},
{
key: 'Streamer',
title: 'Streamer',
subtitle: 'Stream audio from a URL',
screen: Streaming,
},
] as const;