supersonic-scsynth-samples 0.47.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.js +213 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -20,8 +20,8 @@ const supersonic = new SuperSonic({
20
20
  await supersonic.init();
21
21
 
22
22
  // Load any sample
23
- await supersonic.allocReadBuffer(0, 'bd_haus.flac');
24
- await supersonic.allocReadBuffer(1, 'loop_amen.flac');
23
+ await supersonic.loadSample(0, 'bd_haus.flac');
24
+ await supersonic.loadSample(1, 'loop_amen.flac');
25
25
 
26
26
  // Play with basic_mono_player synthdef
27
27
  supersonic.send('/s_new', 'sonic-pi-basic_mono_player', -1, 0, 1, 'buf', 0);
package/index.js CHANGED
@@ -11,8 +11,8 @@ const __dirname = dirname(__filename);
11
11
  export const SAMPLES_DIR = join(__dirname, 'samples');
12
12
 
13
13
  // CDN URLs for convenience
14
- export const UNPKG_BASE = 'https://unpkg.com/supersonic-scsynth-samples@0.1.6/samples/';
15
- export const JSDELIVR_BASE = 'https://cdn.jsdelivr.net/npm/supersonic-scsynth-samples@0.1.6/samples/';
14
+ export const UNPKG_BASE = 'https://unpkg.com/supersonic-scsynth-samples@0.48.0/samples/';
15
+ export const JSDELIVR_BASE = 'https://cdn.jsdelivr.net/npm/supersonic-scsynth-samples@0.48.0/samples/';
16
16
 
17
17
  // Helper to get sample path
18
18
  export function getSamplePath(filename) {
@@ -25,10 +25,220 @@ export function getSampleURL(filename, cdn = 'unpkg') {
25
25
  return base + filename;
26
26
  }
27
27
 
28
+ export const SAMPLE_NAMES = [
29
+ "ambi_choir",
30
+ "ambi_dark_woosh",
31
+ "ambi_drone",
32
+ "ambi_glass_hum",
33
+ "ambi_glass_rub",
34
+ "ambi_haunted_hum",
35
+ "ambi_lunar_land",
36
+ "ambi_piano",
37
+ "ambi_sauna",
38
+ "ambi_soft_buzz",
39
+ "ambi_swoosh",
40
+ "arovane_beat_a",
41
+ "arovane_beat_b",
42
+ "arovane_beat_c",
43
+ "arovane_beat_d",
44
+ "arovane_beat_e",
45
+ "bass_dnb_f",
46
+ "bass_drop_c",
47
+ "bass_hard_c",
48
+ "bass_hit_c",
49
+ "bass_thick_c",
50
+ "bass_trance_c",
51
+ "bass_voxy_c",
52
+ "bass_voxy_hit_c",
53
+ "bass_woodsy_c",
54
+ "bd_808",
55
+ "bd_ada",
56
+ "bd_boom",
57
+ "bd_chip",
58
+ "bd_fat",
59
+ "bd_gas",
60
+ "bd_haus",
61
+ "bd_jazz",
62
+ "bd_klub",
63
+ "bd_mehackit",
64
+ "bd_pure",
65
+ "bd_sone",
66
+ "bd_tek",
67
+ "bd_zome",
68
+ "bd_zum",
69
+ "drum_bass_hard",
70
+ "drum_bass_soft",
71
+ "drum_cowbell",
72
+ "drum_cymbal_closed",
73
+ "drum_cymbal_hard",
74
+ "drum_cymbal_open",
75
+ "drum_cymbal_pedal",
76
+ "drum_cymbal_soft",
77
+ "drum_heavy_kick",
78
+ "drum_roll",
79
+ "drum_snare_hard",
80
+ "drum_snare_soft",
81
+ "drum_splash_hard",
82
+ "drum_splash_soft",
83
+ "drum_tom_hi_hard",
84
+ "drum_tom_hi_soft",
85
+ "drum_tom_lo_hard",
86
+ "drum_tom_lo_soft",
87
+ "drum_tom_mid_hard",
88
+ "drum_tom_mid_soft",
89
+ "elec_beep",
90
+ "elec_bell",
91
+ "elec_blip",
92
+ "elec_blip2",
93
+ "elec_blup",
94
+ "elec_bong",
95
+ "elec_chime",
96
+ "elec_cymbal",
97
+ "elec_filt_snare",
98
+ "elec_flip",
99
+ "elec_fuzz_tom",
100
+ "elec_hi_snare",
101
+ "elec_hollow_kick",
102
+ "elec_lo_snare",
103
+ "elec_mid_snare",
104
+ "elec_ping",
105
+ "elec_plip",
106
+ "elec_pop",
107
+ "elec_snare",
108
+ "elec_soft_kick",
109
+ "elec_tick",
110
+ "elec_triangle",
111
+ "elec_twang",
112
+ "elec_twip",
113
+ "elec_wood",
114
+ "glitch_bass_g",
115
+ "glitch_perc1",
116
+ "glitch_perc2",
117
+ "glitch_perc3",
118
+ "glitch_perc4",
119
+ "glitch_perc5",
120
+ "glitch_robot1",
121
+ "glitch_robot2",
122
+ "guit_e_fifths",
123
+ "guit_e_slide",
124
+ "guit_em9",
125
+ "guit_harmonics",
126
+ "hat_bdu",
127
+ "hat_cab",
128
+ "hat_cats",
129
+ "hat_gem",
130
+ "hat_gnu",
131
+ "hat_gump",
132
+ "hat_hier",
133
+ "hat_len",
134
+ "hat_mess",
135
+ "hat_metal",
136
+ "hat_noiz",
137
+ "hat_psych",
138
+ "hat_raw",
139
+ "hat_sci",
140
+ "hat_snap",
141
+ "hat_star",
142
+ "hat_tap",
143
+ "hat_yosh",
144
+ "hat_zan",
145
+ "hat_zap",
146
+ "hat_zild",
147
+ "loop_3d_printer",
148
+ "loop_amen",
149
+ "loop_amen_full",
150
+ "loop_breakbeat",
151
+ "loop_compus",
152
+ "loop_drone_g_97",
153
+ "loop_electric",
154
+ "loop_garzul",
155
+ "loop_industrial",
156
+ "loop_mehackit1",
157
+ "loop_mehackit2",
158
+ "loop_mika",
159
+ "loop_perc1",
160
+ "loop_perc2",
161
+ "loop_safari",
162
+ "loop_tabla",
163
+ "loop_weirdo",
164
+ "mehackit_phone1",
165
+ "mehackit_phone2",
166
+ "mehackit_phone3",
167
+ "mehackit_phone4",
168
+ "mehackit_robot1",
169
+ "mehackit_robot2",
170
+ "mehackit_robot3",
171
+ "mehackit_robot4",
172
+ "mehackit_robot5",
173
+ "mehackit_robot6",
174
+ "mehackit_robot7",
175
+ "misc_burp",
176
+ "misc_cineboom",
177
+ "misc_crow",
178
+ "perc_bell",
179
+ "perc_bell2",
180
+ "perc_door",
181
+ "perc_impact1",
182
+ "perc_impact2",
183
+ "perc_snap",
184
+ "perc_snap2",
185
+ "perc_swash",
186
+ "perc_swoosh",
187
+ "perc_till",
188
+ "ride_tri",
189
+ "ride_via",
190
+ "sn_dolf",
191
+ "sn_dub",
192
+ "sn_generic",
193
+ "sn_zome",
194
+ "tabla_dhec",
195
+ "tabla_ghe1",
196
+ "tabla_ghe2",
197
+ "tabla_ghe3",
198
+ "tabla_ghe4",
199
+ "tabla_ghe5",
200
+ "tabla_ghe6",
201
+ "tabla_ghe7",
202
+ "tabla_ghe8",
203
+ "tabla_ke1",
204
+ "tabla_ke2",
205
+ "tabla_ke3",
206
+ "tabla_na",
207
+ "tabla_na_o",
208
+ "tabla_na_s",
209
+ "tabla_re",
210
+ "tabla_tas1",
211
+ "tabla_tas2",
212
+ "tabla_tas3",
213
+ "tabla_te1",
214
+ "tabla_te2",
215
+ "tabla_te_m",
216
+ "tabla_te_ne",
217
+ "tabla_tun1",
218
+ "tabla_tun2",
219
+ "tabla_tun3",
220
+ "tbd_fxbed_loop",
221
+ "tbd_highkey_c4",
222
+ "tbd_pad_1",
223
+ "tbd_pad_2",
224
+ "tbd_pad_3",
225
+ "tbd_pad_4",
226
+ "tbd_perc_blip",
227
+ "tbd_perc_hat",
228
+ "tbd_perc_tap_1",
229
+ "tbd_perc_tap_2",
230
+ "tbd_voctone",
231
+ "vinyl_backspin",
232
+ "vinyl_hiss",
233
+ "vinyl_rewind",
234
+ "vinyl_scratch",
235
+ ];
236
+
28
237
  export default {
29
238
  SAMPLES_DIR,
30
239
  UNPKG_BASE,
31
240
  JSDELIVR_BASE,
32
241
  getSamplePath,
33
- getSampleURL
242
+ getSampleURL,
243
+ SAMPLE_NAMES
34
244
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supersonic-scsynth-samples",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "All 206 Sonic Pi audio samples for SuperSonic scsynth",
5
5
  "main": "index.js",
6
6
  "type": "module",