Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Riverfount's full-sized avatar
🏠
Working from home

Vicente Marçal Riverfount

🏠
Working from home
View GitHub Profile

Notas musicais

Objetivos

Ajudar pessoas estudante de música a estudar teoria musical

  • Ajudar no entendimento de escalas musicais

  • Formação de acordes

def generate_batch(generator, batch_size=10):
batch = []
for e in generator:
if len(batch) == batch_size:
yield batch
batch = []
batch.append(e)
if batch:
yield batch