Hey Maxers! This repository contains many examples of how to use the Node For Max package in your Max patches. Some were created by Cycling '74, but others are from the Max community! We welcome community contributions and have included a guide on how to add your own example.
You might find an error in an example, or have a request for a example you would like to see. You can report this by submitting an issue to this repository. Note that you will need to have a GitHub account to submit an issue.
- cors-service: Create a CORS (Cross-Origin Resource Sharing) capable web server. By Cycling '74.
- dog-ceo: Downloads files from a remote API, in this case a repository of dogs. By Cycling '74.
- echo: Simply outputs the input, a pass-through. Shows how to use a list of arguments of unspecified length. By Cycling '74.
- express: A small example Express application. By Cycling '74.
- file-upload: Upload a file from a browser, play it in Max. By Cycling '74.
- freesound: Use the Freesound API with Max. By Cycling '74.
- giphy: Use the Giphy API with Max. By Cycling '74.
- routeServer: Another small Express application example, which gets data from Max. By Cycling '74.
- sockets: An example creating a web server with websockets. By Cycling '74.
- tonal-chord-builder: Generate different chords based on a root note. By Cycling '74.
- twitter: Communicate with Twitter from Max. By Cycling '74.
- watch-youtube: Stream YouTube videos from Max. By Julian from Znibbles.
If you've made something cool with Node For Max, we'd love to showcase it here! Here's how you can submit your example:
- If you don't already have a GitHub account, create one!
- Fork this repository into your GitHub account by clicking on the "Fork" button in the upper right-hand corner. This creates your own copy of the N4M example repository.
- Clone your forked repository to your computer so that you can make changes and add your example.
- Make your changes. We would like for your exmaple to be added in the follow way:
- Create a folder in this repository that's the name of your example, i.e.
my-fun-example
. - Copy all of the necessary files to run your example to the folder. This should be at least a max patch and a JS file.
- Create a file in your example folder called
README.md
(the file path would bemy-fun-example/README.md
) with a description of your example and how to fun it. You can look at the file-upload README for reference. - Add a link to your example in this file, under "List of Examples". Be sure to credit yourself!
- Make sure you don't accidentally add any sensitive information to your example! This happens a lot when working with APIs, since you'll need to create and use API keys. We recommend looking at the freesound example for reference about how to prevent this. You'll likely end up adding two files:
.gitignore
and.env-template
. - Save and commit your changes. Push them to the fork of the N4M examples you made on GitHub.
- Make a pull request. You can think of this as the actual "submission" step.
- Folks from Cycling '74 may ask you to make some changes. This doesn't mean they won't accept your submission! You'll need to go back to your local copy of the N4M Examples repository, make those changes, save and commit the changes, and then push the changes to your forked repo on GitHub.
- If your pull request looks good (you may not even have to make any changes!), your pull request will be accepted. This means your example was sucessfully added! Yay!