Code Monkey home page Code Monkey logo

soundtrap-export-midi's Introduction

Soundtrap Export MIDI

Disclaimer

This is for educational purposes only. This repo only exists to provide insight on Soundtrap's APIs and their not files. All parts of the app are coded by me. If Soundtrap wishes to take down the repo, I will take it down without hesitation. If so, contact me at [email protected].

Setting up

Before anything, you need to get node and npm.

After that's done, you need to get the jb_SESSION cookie. To get this cookie, you need to go to any site with https://www.soundtrap.com on it. Of course, be sure to log in first.

For this tutorial, I'm going to use https://www.soundtrap.com/api/project/getProject1/ to avoid confusion. Now, open Chrome Dev Tools, then click on the "Network" tab. Hit refresh, and an entry named "getProject/" should appear with a red font.

Now, click on that entry, and select the "Headers" tab (should already been selected). Now, scroll down to "Request Headers". Copy all the cookies.

You should copy the area that is similar to the area taken up by "__copyme__":

Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7
Cache-Control: no-cache
Connection: keep-alive
Cookie: __copyme__
Host: www.soundtrap.com
Pragma: no-cache

Now, with the cookie, clone this repo and open up cookie.txt. Paste the cookie you copied earlier.

Finally, run npm install to install the repo's dependencies.

Usage

Syntax:

node index.js PROJECT_ID INCLUDES_FLAG

A file named "export.mid" should appear when you run the command.

PROJECT_ID can be found in the URL https://www.soundtrap.com/studio/PROJECT_ID/

INCLUDES_FLAG is used to determine which tracks to export to midi. Leave blank for exporting all tracks. If INCLUDES_FLAG is set to "midi", for example, any track name with the word "midi" in it would be exported as midi.

soundtrap-export-midi's People

Contributors

binary-person avatar

Watchers

 avatar

soundtrap-export-midi's Issues

not working

SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at main (C:\Users\user\OneDrive\Desktop\soundtrap-export-midi-master\index.js:11:28)
โ†[90m at processTicksAndRejections (node:internal/process/task_queues:93:5)โ†[39m

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.