This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const uri = "path/to/your/file"; | |
const fileExtension = uri.split('.').pop(); | |
const formData = new FormData(); | |
formData.append('audioFile', { | |
uri: uri, | |
type: `audio/x-${fileExtension}`, | |
name: 'name', | |
} as any); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Visual arts with Processing | |
* Chapter 0, The Beginning | |
* Otso Sorvettula, Mehackit (CC BY-SA 4.0) | |
* | |
* This program takes an image and transforms it into a binary image. You can draw on the by image using the mouse. | |
* | |
* Set the image by setting the url for linkToImage variable | |
* | |
* Change the threshold by pressing '+' and '-'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Visual arts with Processing | |
* Chapter 0, The Beginning | |
* Otso Sorvettula, Mehackit (CC BY-SA 4.0) | |
* | |
* This program takes the webcam feed and transforms it into a binary image. | |
You can draw on the by image using the mouse. | |
* | |
* Change the threshold by pressing '+' and '-'. | |
* Toggle webcam feed on and off with 't'. |