Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit 7dc638f

Browse files
docstring
1 parent 53eb691 commit 7dc638f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

notepredictor/notepredictor/model.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,17 @@ def predict(self,
301301
"""
302302
supply the most recent note and return a prediction for the next note.
303303
304+
various constraints can be enforced on the next note.
305+
304306
Args:
305307
pitch: int. MIDI number of current note.
306308
time: float. elapsed time since previous note.
307309
vel: float. (possibly dequantized) MIDI velocity from 0-127 inclusive.
308310
fix_*: same as above, but to fix a value for the predicted note
311+
index_pitch: Optional[int]. if not None, determinisitically take the nth
312+
most likely pitch instead of sampling.
313+
allow_start: if False, zero probability for sampling the start token
314+
allow_end: if False, zero probaility for sampling the end token
309315
310316
Returns: dict of
311317
'pitch': int. predicted MIDI number of next note.

0 commit comments

Comments
 (0)