Create a web app that generates melodies using Magenta’s AI (Coursera)

Create a web app that generates melodies using Magenta’s AI (Coursera)

By the end of this project, you will create a music web application that uses AI to generate melodies, based on the musical idea given by the user. For this, we are going to use Magenta.js, Vexflow and Tone.js. In order to take this project, you should be familiar with HTML, CSS, and JavaScript. Starting from scratch, we will use Glitch to create our music web app. If you are interested in music and machine learning, this project is for you. This Guided Project was created by a Coursera community member.

Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.

In this Guided Project, you will:

  • Create a web app with a music notation system using VexFlow
  • Add Tone.js to your app so user can hear the notes in the browser
  • Use Magenta.js to generate melodies using AI

Learn step-by-step

  • Getting started with Glitch
  • Adding a form and capture the inputs using JS
  • Creating a Staff using EasyScore from VexFlow
  • Parsing the notes
  • Adding the notes to VexFlow
  • Getting started with Tone.js
  • Using Tone.js to play the notes of our Staff
    • Getting started with Magenta.js by Google
  • Generating a melody using MusicRNN
  • Adding an HTML midi player and visualizer to your app
Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Artificial Intelligence in Marketing (Coursera) Coursera
University of Virginia

Artificial Intelligence in Marketing (Coursera)

AI is everywhere! By harnessing the power of Artificial Intelligence, businesses and marketers have amazing growth potential, and the opportunities to enhance marketing with AI are always expanding. But how can businesses use AI tools to drive their success and gain sustainable competitive advantages? What are the challenges faced by businesses as they implement AI into their marketing strategies? In this course, developed at the Darden School of Business at the University of Virginia, and delivered by Professor of Business Administration Raj Venkatesan, you will explore an important frontier of digital transformation in marketing.

Oct 26th 2026
4 Weeks
AI for Efficient Programming: Harnessing the Power of LLMs (Coursera) Coursera
Fred Hutchinson Cancer Center

AI for Efficient Programming: Harnessing the Power of LLMs (Coursera)

This course on Artificial Intelligence (AI) for software development explores the use of AI large language models such as ChatGPT, Bard, and others and their potential benefits and challenges. Through examples and hands-on activities, you will develop an understanding of the ways in which AI can speed up software development tasks and free up time for more creative and strategic work.

Nov 2nd 2026
4 Weeks
Introduction to Vertex AI (Coursera) Coursera
Fractal Analytics

Introduction to Vertex AI (Coursera)

Welcome to "Introduction to Vertex AI"! In this concise yet impactful microlearning course spanning around 4 hours, we're diving into the world of Vertex AI to equip you with fundamental insights and practical skills. We'll unravel the essentials of Vertex AI, guiding you through the interface to empower you to navigate this powerful platform seamlessly. Get ready to grasp strategic insights that will enable you to effectively harness the capabilities of Vertex AI in your projects.

Oct 26th 2026
2 Weeks
Google Cloud Product Fundamentals em Português Brasileiro (Coursera) Coursera
Google Cloud

Google Cloud Product Fundamentals em Português Brasileiro (Coursera)

Este curso é uma continuação do "Business Transformation with Google Cloud" e guiará você pela jornada de transformação de uma organização do ponto de vista tecnológico. Explicaremos como as organizações podem fazer a transformação digital usando a tecnologia do Google Cloud nestas categorias: modernização da infraestrutura de TI; melhorias no processo de desenvolvimento dos aplicativos da empresa; uso do machine learning e da inteligência artificial para criar novo valor; a importância de ferramentas de produtividade como o G Suite na realização do trabalho; e compreender as oportunidades e os desafios da gestão do custo que uma infraestrutura de TI na nuvem traz.

Oct 26th 2026
5-12 Weeks
Fundamentals of Flux (Coursera) Coursera
Board Infinity

Fundamentals of Flux (Coursera)

Welcome to the "Fundamentals of Flux" course, where you will embark on a journey to become proficient in Flux, a robust architecture for building web applications. Over the course of two comprehensive modules, you will acquire the skills and knowledge necessary to create scalable, maintainable, and efficient web applications using Flux.

Oct 26th 2026
2 Weeks
Business Implications of AI: Full course (Coursera) Coursera
EIT Digital

Business Implications of AI: Full course (Coursera)

In this course you will learn what Artificial Intelligence is, from a leaders point of view. How shall we, as leaders, understand it from a corporate strategy point of view? What is it and how can it be used? What are the crucial strategic decisions we have to make, and how to make them? What consequences can we expect if we decide on doing AI-projects and what kind of competences do we need? Where shall we start, and what could be a good second as well as third step? What implications for the organization can we expect? These are the questions answered in this course.

Nov 2nd 2026
4 Weeks
New Technologies for Business Leaders (Coursera) Coursera
Rutgers University

New Technologies for Business Leaders (Coursera)

This introductory course is developed for high-level business people (and those on their way) who want a broad understanding of new Information Technologies and understand their potential for business functions (e.g. marketing, supply change management, finance). This is not a course for people looking for guidance on how to become a deep technical expert or implement these technologies.

Oct 26th 2026
5-12 Weeks
Google Cloud Product Fundamentals en Español (Coursera) Coursera
Google Cloud

Google Cloud Product Fundamentals en Español (Coursera)

Este curso, que es una continuación de Business Transformation with Google Cloud, le permitirá conocer la perspectiva tecnológica de la transformación de una organización. Para ser más específicos, explicaremos cómo la tecnología de Google Cloud puede transformar digitalmente una organización en los siguientes aspectos: modernizar la infraestructura de TI; mejorar la forma en que los equipos desarrollan las aplicaciones que utiliza la empresa; saber cómo aprovechar el aprendizaje automático y la inteligencia artificial para generar más valor; advertir el rol fundamental de las herramientas de productividad basadas en la nube, como G Suite, para cumplir con el trabajo, y comprender los desafíos y las oportunidades de la administración de costos que trae aparejados una infraestructura de TI cambiante basada en la nube.

Oct 26th 2026
5-12 Weeks
Business Implications of AI: A Nano-course (Coursera) Coursera
EIT Digital

Business Implications of AI: A Nano-course (Coursera)

In this course you will learn what Artificial Intelligence is, from a leaders point of view. How shall we, as leaders, understand it from a corporate strategy point of view? What is it and how can it be used? What are the crucial strategic decisions we have to make, and how to make them? What consequences can we expect if we decide on doing AI-projects and what kind of competences do we need? Where shall we start, and what could be a good second as well as third step? What implications for the organization can we expect? These are the questions answered in this course.

Nov 2nd 2026
4 Weeks