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

Web Application Development: Basic Concepts (Coursera) Coursera
University of New Mexico

Web Application Development: Basic Concepts (Coursera)

This is the first course in a Coursera Specialization track involving Web Application Architectures. This course will give you the basic background, terminology and fundamental concepts that you need to understand in order to build modern full stack web applications. A full stack web developer is familiar with each "layer" of the software technologies involved in a web application, including data modeling and database technologies, the web server environment and middleware components, network protocols, the user interface and basic visual design and user interaction concepts.

Nov 9th 2026
5-12 Weeks
Designing Autonomous AI (Coursera) Coursera
University of Washington,Microsoft

Designing Autonomous AI (Coursera)

When children learn how to hit a baseball, they don’t start with fastballs. Their coaches begin with the basics: how to grip the handle of the bat, where to put their feet and how to keep their eyes on the ball. Similarly, an autonomous AI system needs a subject matter expert (SME) to break a complex process or problem into easier tasks that give the AI important clues about how to find a solution faster.

Nov 9th 2026
4 Weeks
Legal Tech and the Digital Transformation of Law (Coursera) Coursera
Universidad Austral

Legal Tech and the Digital Transformation of Law (Coursera)

The digital revolution changed the way we communicate and trade. Now, it is coming into the world of law. This program will give you a broad overview of the main trends that are affecting the legal industry: the birth of the legal tech market and the application of technology in law; the role of artificial intelligence in the automation of the work of lawyers; blockchain technology and its impact on the way we sign and execute contracts; initiatives to ensure access to justice through virtual courts and robot judges.

Nov 2nd 2026
5-12 Weeks
El Abogado del Futuro: Legaltech y la Transformación Digital del Derecho (Coursera) Coursera
Universidad Austral

El Abogado del Futuro: Legaltech y la Transformación Digital del Derecho (Coursera)

La revolución digital cambió nuestra manera de comunicarnos, de comerciar y de relacionarnos. Ahora, está llegando al mundo del derecho. Este programa te ofrecerá una visión amplia de las principales tendencias que están afectando a la industria legal: - El nacimiento del mercado de legaltech y la aplicación de tecnología en el derecho. - El rol de la inteligencia artificial en la automatización del trabajo de los abogados. - La tecnología de blockchain y su impacto en la forma en que firmamos y ejecutamos contratos. - Las iniciativas para asegurar el acceso a la justicia a través de cortes virtuales y jueces robot.

Nov 2nd 2026
5-12 Weeks
Machine Learning Rapid Prototyping with IBM Watson Studio (Coursera) Coursera
IBM

Machine Learning Rapid Prototyping with IBM Watson Studio (Coursera)

An emerging trend in AI is the availability of technologies in which automation is used to select a best-fit model, perform feature engineering and improve model performance via hyperparameter optimization. This automation will provide rapid-prototyping of models and allow the Data Scientist to focus their efforts on applying domain knowledge to fine-tune models. This course will take the learner through the creation of an end-to-end automated pipeline built by Watson Studio’s AutoAI experiment tool, explaining the underlying technology at work as developed by IBM Research.

Nov 9th 2026
4 Weeks
Leveraging Virtual Assistants for Personal Productivity (Coursera) Coursera
Coursera Instructor Network

Leveraging Virtual Assistants for Personal Productivity (Coursera)

In a fast-paced world, managing personal productivity is crucial. This course introduces beginners to the world of virtual assistants and chatbots and how they can be harnessed to enhance personal productivity. Learn how to use these AI-driven tools effectively to streamline tasks, manage time, and boost overall efficiency.

Nov 9th 2026
1 Week
GenAI for Everyone (Coursera) Coursera
Coursera Instructor Network

GenAI for Everyone (Coursera)

This course offers a foundational journey into the world of Generative AI (GenAI), setting the stage for a comprehensive learning path that delves into the nuanced, role-specific applications of AI. Designed to equip learners with essential GenAI knowledge, this primer is the perfect starting point before progressing through a series of courses tailored to various job functions and roles.

Nov 9th 2026
1 Week
Technologies and platforms for Artificial Intelligence (Coursera) Coursera
Politecnico di Milano

Technologies and platforms for Artificial Intelligence (Coursera)

This course will address the hardware technologies for machine and deep learning (from the units of an Internet-of-Things system to a large-scale data centers) and will explore the families of machine and deep learning platforms (libraries and frameworks) for the design and development of smart applications and systems.

Nov 9th 2026
4 Weeks
GitHub Copilot: The AI Pair Programmer for Coding (Coursera) Coursera
Edureka

GitHub Copilot: The AI Pair Programmer for Coding (Coursera)

Welcome to the 'GitHub Copilot: The AI Pair Programmer for Coding' course, where you will embark on an insightful journey to develop a profound understanding of the AI principles that power GitHub Copilot's coding assistance. This course is designed to transform your coding practices, leveraging the advanced capabilities of GitHub Copilot.

Nov 9th 2026
1 Week
Machine Learning Introduction for Everyone (Coursera) Coursera
IBM

Machine Learning Introduction for Everyone (Coursera)

This three-module course introduces machine learning and data science for everyone with a foundational understanding of machine learning models. You’ll learn about the history of machine learning, applications of machine learning, the machine learning model lifecycle, and tools for machine learning. You’ll also learn about supervised versus unsupervised learning, classification, regression, evaluating machine learning models, and more.

Nov 9th 2026
3 Weeks