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

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.

Dec 21st 2026
5-12 Weeks
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
AI and the Illusion of Intelligence (Coursera) Coursera
Copenhagen Business School

AI and the Illusion of Intelligence (Coursera)

Will AI soon be surpassing humans? This is rapidly becoming one of the central questions of our time -- but it is the wrong question. In this course, we will provide a non-technical look at where AI has come from, and where it is going. We will see that there is no reason to expect that AI will be surpassing humans. Instead, what we are learning to create with AI is the illusion of intelligence.

Dec 21st 2026
4 Weeks
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
AI, Business & the Future of Work (Coursera) Coursera
Lund University

AI, Business & the Future of Work (Coursera)

This course from Lunds university will help you understand and use AI so that you can transform your organisation to be more efficient, more sustainable and thus innovative. The lives of people all over the world are increasingly enhanced and shaped by artificial intelligence. To organisations there are tremendous opportunities, but also risks, so where do you start to plan for AI, business and the future of work?

Dec 28th 2026
4 Weeks
Responsible AI in the Generative AI Era (Coursera) Coursera
Fractal Analytics

Responsible AI in the Generative AI Era (Coursera)

This one-week microlearning course provides an introduction to the Principles of Responsible AI and how those principles align with the Generative AI or GenAI space. It also informs the learners about the various challenges that Generative AI brings. You will explore the fundamental principles of responsible AI, and understand the need for developing Generative AI tools responsibly.

Dec 21st 2026
1 Week
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.

Dec 28th 2026
4 Weeks
Math for AI beginner part 1 Linear Algebra (Coursera) Coursera
Korea Advanced Institute of Science and Technology - KAIST

Math for AI beginner part 1 Linear Algebra (Coursera)

'Learn concept of AI such as machine learning, deep-learning, support vector machine which is related to linear algebra. Learn how to use linear algebra for AI algorithm. After completing this course, you are able to understand AI algorithm and basics of linear algebra for AI applications.

Dec 21st 2026
5-12 Weeks
Responsible AI - Principles and Ethical Considerations (Coursera) Coursera
Fractal Analytics

Responsible AI - Principles and Ethical Considerations (Coursera)

Welcome to "Responsible AI – Principles and Ethical Considerations"! Dive deep into the very essence of Responsible AI with us. Uncover the significance of key principles shaping technology's future. From ethical considerations to fairness, transparency, and accountability, we discuss these principles with real-world examples, putting them into the context of data science.

Dec 28th 2026
5-12 Weeks
Sample-based Learning Methods (Coursera) Coursera
University of Alberta,Alberta Machine Intelligence Institute

Sample-based Learning Methods (Coursera)

In this course, you will learn about several algorithms that can learn near optimal policies based on trial and error interaction with the environment---learning from the agent’s own experience. Learning from actual experience is striking because it requires no prior knowledge of the environment’s dynamics, yet can still attain optimal behavior. We will cover intuitively simple but powerful Monte Carlo methods, and temporal difference learning methods including Q-learning. We will wrap up this course investigating how we can get the best of both worlds: algorithms that can combine model-based planning (similar to dynamic programming) and temporal difference updates to radically accelerate learning.

Jan 1st 2027
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.

Dec 28th 2026
5-12 Weeks