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

Prompt Engineering for Web Developers (Coursera) Coursera
Scrimba

Prompt Engineering for Web Developers (Coursera)

Not quite getting the results you want from ChatGPT? Wondering how you can use AI language models to your advantage? Then this course is for you! If you’ve spent any amount of time with AI language models like ChatGPT and Google Bard, you may have noticed the results can sometimes be, well, frustrating. When it comes to leveraging AI language models, your output is often only as good as your input. In other words, it’s all about learning how best to communicate your desired results. Effective prompt engineering is the secret sauce for getting the most out of AI.

Sep 14th 2026
3 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.

Sep 14th 2026
4 Weeks
Artificial Intelligence and legal issues (Coursera) Coursera
Politecnico di Milano

Artificial Intelligence and legal issues (Coursera)

The purpose of the course is to help students understand the legal implications related to the design and use of artificial intelligence systems, providing an overview of the risks and legal protections that can be envisaged and giving an overview of the legislation and legal principles currently applicable on the subject.

Sep 7th 2026
4 Weeks
Automated Report Generation with Generative AI (Coursera) Coursera
Coursera Instructor Network

Automated Report Generation with Generative AI (Coursera)

In today's data-driven world, generating reports efficiently is a valuable skill for professionals across various industries. This course introduces beginners to the world of automated report generation using AI-powered tools and techniques. You will learn how to leverage the capabilities of artificial intelligence to streamline the reporting process, save time, and improve data accuracy.

Sep 14th 2026
1 Week
Artificial Intelligence: An Overview (Coursera) Coursera
Politecnico di Milano

Artificial Intelligence: An Overview (Coursera)

The course will provide a non-technical overview of the artificial intelligence field. Initially, a discussion on the birth of AI is provided, remarking the seminal ideas and preliminary goals. Furthermore, the crucial weaknesses are presented and how these weaknesses have been circumvented. Then, the current state of AI is presented, in terms of goals, importance at national level, and strategies. Moreover, the taxonomy of the AI topics is presented.

Sep 14th 2026
5-12 Weeks
Use Generative AI as Your Thought Partner (Coursera) Coursera
Coursera Instructor Network

Use Generative AI as Your Thought Partner (Coursera)

This is a lesson from the comprehensive program, Navigating Generative AI for Leaders. In this lesson, you’ll learn how Coursera CEO, Jeff Maggioncalda, leverages generative AI models to be a more effective CEO. Jeff will discuss how he uses AI covering everything from his set up and model choices, through hands-on prompting examples.

Sep 14th 2026
1 Week
Data Augmented Technology Assisted Medical Decision Making (Coursera) Coursera
University of Michigan

Data Augmented Technology Assisted Medical Decision Making (Coursera)

Artificial intelligence (AI) and machine learning (ML) have the potential to increase diagnostic accuracy, decrease diagnostic errors, and improve patient outcomes. The Data Augmented, Technology Assisted Medical Decision Making (DATA-MD) course will teach you how to use AI to augment your diagnostic decision-making.

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

Sep 14th 2026
3 Weeks
Ethics of Artificial Intelligence (Coursera) Coursera
Politecnico di Milano

Ethics of Artificial Intelligence (Coursera)

This course deals with the problems created, aggravated or transformed by AI. It is intended to give students a chance to reflect on the ethical, social, and cultural impact of AI by focusing on the issues faced by and brought about by professionals in AI but also by citizens, institutions and societies. The course addresses these topics by means of case studies and examples analyzed in the light of the main ethical frameworks.

Sep 14th 2026
4 Weeks
Gen AI for Code Generation for Python (Coursera) Coursera
Edureka

Gen AI for Code Generation for Python (Coursera)

Welcome to the 'Gen AI for Code Generation for Python' course, where you'll embark on a journey to explore and develop your skills in the art of code generation with Generative AI. Throughout this short course, you will delve into various techniques for generating Python code effortlessly, ranging from simple scripts to complete end-to-end projects.

Sep 14th 2026
1 Week