@@ -203,9 +203,7 @@ MP_PROPERTY_GETSET(synthio_note_waveform_obj,
203
203
//| waveform_loop_start: BlockInput
204
204
//| """The sample index of where to begin looping waveform data.
205
205
//|
206
- //| Values outside the range ``0`` to ``waveform_max_length-1`` (inclusive) are rejected with a `ValueError`.
207
- //|
208
- //| Values greater than or equal to the actual waveform length are treated as 0."""
206
+ //| The value is limited to the range ``0`` to ``len(waveform)-1`` (inclusive)."""
209
207
static mp_obj_t synthio_note_get_waveform_loop_start (mp_obj_t self_in ) {
210
208
synthio_note_obj_t * self = MP_OBJ_TO_PTR (self_in );
211
209
return common_hal_synthio_note_get_waveform_loop_start (self );
@@ -225,9 +223,7 @@ MP_PROPERTY_GETSET(synthio_note_waveform_loop_start_obj,
225
223
//| waveform_loop_end: BlockInput
226
224
//| """The sample index of where to end looping waveform data.
227
225
//|
228
- //| Values outside the range ``1`` to ``waveform_max_length`` (inclusive) are rejected with a `ValueError`.
229
- //|
230
- //| If the value is greater than the actual waveform length, or less than or equal to the loop start, the loop will occur at the end of the waveform.
226
+ //| The value is limited to the range ``waveform_loop_start+1`` to ``len(waveform)`` (inclusive).
231
227
//|
232
228
//| Use the `synthio.waveform_max_length` constant to set the loop point at the end of the wave form, no matter its length."""
233
229
//|
@@ -336,9 +332,7 @@ MP_PROPERTY_GETSET(synthio_note_ring_waveform_obj,
336
332
//| ring_waveform_loop_start: BlockInput
337
333
//| """The sample index of where to begin looping waveform data.
338
334
//|
339
- //| Values outside the range ``0`` to ``waveform_max_length-1`` (inclusive) are rejected with a `ValueError`.
340
- //|
341
- //| Values greater than or equal to the actual waveform length are treated as 0."""
335
+ //| The value is limited to the range ``0`` to ``len(ring_waveform)-1`` (inclusive)."""
342
336
static mp_obj_t synthio_note_get_ring_waveform_loop_start (mp_obj_t self_in ) {
343
337
synthio_note_obj_t * self = MP_OBJ_TO_PTR (self_in );
344
338
return common_hal_synthio_note_get_ring_waveform_loop_start (self );
@@ -358,9 +352,7 @@ MP_PROPERTY_GETSET(synthio_note_ring_waveform_loop_start_obj,
358
352
//| ring_waveform_loop_end: BlockInput
359
353
//| """The sample index of where to end looping waveform data.
360
354
//|
361
- //| Values outside the range ``1`` to ``waveform_max_length`` (inclusive) are rejected with a `ValueError`.
362
- //|
363
- //| If the value is greater than the actual waveform length, or less than or equal to the loop start, the loop will occur at the end of the waveform.
355
+ //| The value is limited to the range ``ring_waveform_loop_start+1`` to ``len(ring_waveform)`` (inclusive).
364
356
//|
365
357
//| Use the `synthio.waveform_max_length` constant to set the loop point at the end of the wave form, no matter its length."""
366
358
//|
0 commit comments