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

Introduction to Generative AI Studio (Coursera) Coursera
Google Cloud

Introduction to Generative AI Studio (Coursera)

This course introduces Generative AI Studio, a product on Vertex AI, that helps you prototype and customize generative AI models so you can use their capabilities in your applications. In this course, you learn what Generative AI Studio is, its features and options, and how to use it by walking through demos of the product. In the end, you will have a quiz to test your knowledge.

Dec 21st 2026
1 Week
Security for Artificial Intelligence Software and Services (Coursera) Coursera
Board Infinity

Security for Artificial Intelligence Software and Services (Coursera)

The "Security Basics for Artificial Intelligence Software and Services" course provides an in-depth exploration of security measures and best practices in the context of AI. Spanning two comprehensive modules, the course begins with an introduction to the fundamentals of AI security, including ethical considerations and common threats. It then progresses to practical strategies for implementing robust security in AI development, such as secure coding, vulnerability assessment, and adherence to compliance standards.

Dec 21st 2026
2 Weeks
Next-Generation AI Assistant: Claude by Anthropic (Coursera) Coursera
Coursera Instructor Network

Next-Generation AI Assistant: Claude by Anthropic (Coursera)

In this guided project, you will explore the capabilities of Claude AI, Anthropic's advanced AI assistant, and learn how to effectively apply its features in your work. This journey involves mastering the skills needed to create compelling materials, persuasive messaging, and strategic campaigns that engage your target audience and enhance your projects.

Dec 21st 2026
1 Week
General AI Mastery Toolbox: Master AI and Drive Success (Coursera) Coursera
Coursera Instructor Network

General AI Mastery Toolbox: Master AI and Drive Success (Coursera)

General Artificial Intelligence (AI) has proven its value in the business world with its multiple uses. The various applications of AI have proved to be of increasing value to businesses in their ability to meet customer demand with efficiency and creativity. To remain in sync with the direction of business entities, individuals need a tool kit to assist them as they master this technology.

Dec 21st 2026
1 Week
Amazon Bedrock - Getting Started (Coursera) Coursera
AWS

Amazon Bedrock - Getting Started (Coursera)

Amazon Bedrock is a fully managed service that makes foundation models (FMs) from Amazon and leading artificial intelligence (AI) startups available through an API. In this course, you will learn the benefits of Amazon Bedrock. You will learn how to start using the service through a demonstration in the Amazon Bedrock console. You will also learn about the AI concepts of Amazon Bedrock and how you can use the service to accelerate development of generative AI applications.

Dec 21st 2026
1 Week
Introduction to Digital Transformation (Coursera) Coursera
Siemens

Introduction to Digital Transformation (Coursera)

This course is primarily for professionals, college students, and advanced high school students who are interested in driving the digital transformation by integrating automation, software, and cutting-edge technologies. This course represents a foundational introduction to Digital Transformation, appropriate for learners with a basic familiarity with common business terms and concepts and an interest in digital technology.

Dec 14th 2026
5-12 Weeks
Ethical AI Use (Coursera) Coursera
University System of Georgia

Ethical AI Use (Coursera)

The "Ethical AI Use" course delves into the critical intersection of technology and ethics, focusing on the responsible development and deployment of artificial intelligence (AI). Participants will explore the evolution of AI, distinguishing between the two fundamental types, and examine the ethical considerations inherent in the realm of generative AI.

Dec 21st 2026
2 Weeks
Artificial Intelligence: Ethics & Societal Challenges (Coursera) Coursera
Lund University

Artificial Intelligence: Ethics & Societal Challenges (Coursera)

Artificial Intelligence: Ethics & Societal Challenges is a four-week course that explores ethical and societal aspects of the increasing use of artificial intelligent technologies (AI). The aim of the course is to raise awareness of ethical and societal aspects of AI and to stimulate reflection and discussion upon implications of the use of AI in society.

Dec 14th 2026
4 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.

Dec 21st 2026
5-12 Weeks