(next_token, current_time_signature)
| 98 | m.weight.data.normal_(mean, std) |
| 99 | |
| 100 | def keep_rhythm(next_token, current_time_signature): |
| 101 | allowed_durations = get_allowed_durations(current_time_signature) |
| 102 | if next_token not in allowed_durations: |
| 103 | next_token = random.choice(allowed_durations) |
| 104 | return next_token |
| 105 | |
| 106 | def keep_harmony(next_token, current_chord): |
| 107 | allowed_notes = get_allowed_notes(current_chord) # Define allowed notes for the chord |
no outgoing calls
no test coverage detected